Skip to content

Commit b031d10

Browse files
Sylfrenagregkh
authored andcommitted
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 01713f0 commit b031d10

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

drivers/staging/wfx/fwio.c

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -397,10 +397,9 @@ int wfx_init_device(struct wfx_dev *wdev)
397397
ret = load_firmware_secure(wdev);
398398
if (ret < 0)
399399
return ret;
400-
ret = config_reg_write_bits(wdev,
401-
CFG_DIRECT_ACCESS_MODE |
402-
CFG_IRQ_ENABLE_DATA |
403-
CFG_IRQ_ENABLE_WRDY,
404-
CFG_IRQ_ENABLE_DATA);
405-
return ret;
400+
return config_reg_write_bits(wdev,
401+
CFG_DIRECT_ACCESS_MODE |
402+
CFG_IRQ_ENABLE_DATA |
403+
CFG_IRQ_ENABLE_WRDY,
404+
CFG_IRQ_ENABLE_DATA);
406405
}

0 commit comments

Comments
 (0)