]> git.baikalelectronics.ru Git - kernel.git/commit
staging: r8188eu: Remove unnecessary ret variable in rtw_drv_init()
authorNathan Chancellor <nathan@kernel.org>
Fri, 13 Aug 2021 20:14:18 +0000 (13:14 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Aug 2021 07:08:47 +0000 (09:08 +0200)
commitff78708d87b89ec30fb861183b84817c299915bf
tree154b7b246f996575df83242f82e7e895923440ab
parenta4cab5c1c330fb9f40f1680b4500120c8d13c688
staging: r8188eu: Remove unnecessary ret variable in rtw_drv_init()

ret is unnecessary as both error paths set the same error code so just
return that directly.

Suggested-by: Fabio M. De Francesco <fmdefrancesco@gmail.com>
Reviewed-by: Fabio M. De Francesco <fmdefrancesco@gmail.com>
Acked-by: Phillip Potter <phil@philpotter.co.uk>
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Link: https://lore.kernel.org/r/20210813201418.4018631-1-nathan@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/os_dep/usb_intf.c