Commit b031d10a authored by Sumera Priyadarsini's avatar Sumera Priyadarsini Committed by Greg Kroah-Hartman

staging: wfx: Remove unnecessary return variable

Remove redundant variable in file fwio.c used for returning value.

Issue was found using Coccinelle:

@@
local idexpression ret;
expression e;
@@

-ret =
+return
     e;
-return ret;
Signed-off-by: default avatarSumera Priyadarsini <sylphrenadin@gmail.com>
Link: https://lore.kernel.org/r/20200726130720.12993-1-sylphrenadin@gmail.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 01713f0d
...@@ -397,10 +397,9 @@ int wfx_init_device(struct wfx_dev *wdev) ...@@ -397,10 +397,9 @@ int wfx_init_device(struct wfx_dev *wdev)
ret = load_firmware_secure(wdev); ret = load_firmware_secure(wdev);
if (ret < 0) if (ret < 0)
return ret; return ret;
ret = config_reg_write_bits(wdev, return config_reg_write_bits(wdev,
CFG_DIRECT_ACCESS_MODE | CFG_DIRECT_ACCESS_MODE |
CFG_IRQ_ENABLE_DATA | CFG_IRQ_ENABLE_DATA |
CFG_IRQ_ENABLE_WRDY, CFG_IRQ_ENABLE_WRDY,
CFG_IRQ_ENABLE_DATA); CFG_IRQ_ENABLE_DATA);
return ret;
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment