diff options
author | Elise Lennion <elise.lennion@gmail.com> | 2016-10-17 05:15:47 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-10-17 11:27:55 +0300 |
commit | a98753b7e94c867361228c59edf9be195d1dfd84 (patch) | |
tree | 44d5715f8b0a22ff01e9bf2f195bc75987352874 /drivers | |
parent | dcb9360e66289d6336f8dbd483babf39ac8e73a5 (diff) | |
download | linux-a98753b7e94c867361228c59edf9be195d1dfd84.tar.xz |
staging: rtl8192e: Compress return logic into one line.
Simplify return logic to avoid unnecessary variable assignments.
Coccinelle was used with this semantic patch:
@@
local idexpression ret;
expression e;
@@
-ret =
+return
e;
-return ret;
Signed-off-by: Elise Lennion <elise.lennion@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/rtl8192e/rtl8192e/r8192E_firmware.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/staging/rtl8192e/rtl8192e/r8192E_firmware.c b/drivers/staging/rtl8192e/rtl8192e/r8192E_firmware.c index 9aaa85526eb8..bbe399010be1 100644 --- a/drivers/staging/rtl8192e/rtl8192e/r8192E_firmware.c +++ b/drivers/staging/rtl8192e/rtl8192e/r8192E_firmware.c @@ -202,7 +202,5 @@ bool rtl92e_init_fw(struct net_device *dev) download_firmware_fail: netdev_err(dev, "%s: Failed to initialize firmware.\n", __func__); - rt_status = false; - return rt_status; - + return false; } |