staging: r8188eu: remove unnecessary variable in rtl8188eu_xmit
authorKang Minchul <tegongkang@gmail.com>
Tue, 25 Oct 2022 17:06:20 +0000 (02:06 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 31 Oct 2022 08:05:17 +0000 (09:05 +0100)
commit0a7bf6a948b2a772ebed3915b6c47189d63dc246
treef12c66db90a8d900777923d7092b2e8753c73d8f
parentf67469fe658a484f8c000bfcf66a191417bd6e30
staging: r8188eu: remove unnecessary variable in rtl8188eu_xmit

Return 0 directly instead of storing it in a variable.
This can prevent cocci warning as follows:

  Unneeded variable: "pull". Return "0" on line 298

Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> # Edimax N150
Signed-off-by: Kang Minchul <tegongkang@gmail.com>
Link: https://lore.kernel.org/r/20221025170621.271903-4-tegongkang@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/hal/rtl8188eu_xmit.c