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>
This commit is contained in:
parent
dcb9360e66
commit
a98753b7e9
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue