mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-02-24 12:26:39 -05:00
staging: wilc1000: wilc_wlan: Compress return logic
Compress return logic. Done using Coccinelle : @@ local idexpression ret; expression e; @@ -ret= +return e; -return ret; Signed-off-by: Namrata A Shettar <namrataashettar@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
52b4f6e081
commit
0ca8df12e7
@@ -1033,8 +1033,7 @@ int wilc_wlan_start(struct wilc *wilc)
|
||||
ret = wilc->hif_func->hif_write_reg(wilc, WILC_GP_REG_1, reg);
|
||||
if (!ret) {
|
||||
release_bus(wilc, RELEASE_ONLY);
|
||||
ret = -EIO;
|
||||
return ret;
|
||||
return -EIO;
|
||||
}
|
||||
|
||||
wilc->hif_func->hif_sync_ext(wilc, NUM_INT_EXT);
|
||||
@@ -1042,8 +1041,7 @@ int wilc_wlan_start(struct wilc *wilc)
|
||||
ret = wilc->hif_func->hif_read_reg(wilc, 0x1000, &chipid);
|
||||
if (!ret) {
|
||||
release_bus(wilc, RELEASE_ONLY);
|
||||
ret = -EIO;
|
||||
return ret;
|
||||
return -EIO;
|
||||
}
|
||||
|
||||
wilc->hif_func->hif_read_reg(wilc, WILC_GLB_RESET_0, ®);
|
||||
|
||||
Reference in New Issue
Block a user