mirror of
https://github.com/torvalds/linux.git
synced 2024-11-26 22:21:42 +00:00
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: Sumera Priyadarsini <sylphrenadin@gmail.com> Link: https://lore.kernel.org/r/20200726130720.12993-1-sylphrenadin@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
01713f0d58
commit
b031d10abf
@ -397,10 +397,9 @@ int wfx_init_device(struct wfx_dev *wdev)
|
||||
ret = load_firmware_secure(wdev);
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
ret = config_reg_write_bits(wdev,
|
||||
CFG_DIRECT_ACCESS_MODE |
|
||||
CFG_IRQ_ENABLE_DATA |
|
||||
CFG_IRQ_ENABLE_WRDY,
|
||||
CFG_IRQ_ENABLE_DATA);
|
||||
return ret;
|
||||
return config_reg_write_bits(wdev,
|
||||
CFG_DIRECT_ACCESS_MODE |
|
||||
CFG_IRQ_ENABLE_DATA |
|
||||
CFG_IRQ_ENABLE_WRDY,
|
||||
CFG_IRQ_ENABLE_DATA);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user