staging: r8712u: Remove useless return variables
This patch remove variables that are initialized with a constant, are never updated, and are only used as parameter of return. Return the constant instead of using a variable. Verified by compilation only. The coccinelle script that find and fixes this issue is: // <smpl> @@ type T; constant C; identifier ret; @@ - T ret = C; ... when != ret - return ret; + return C; // </smpl> Signed-off-by:Peter Senna Tschudin <peter.senna@gmail.com> Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Showing
- drivers/staging/rtl8712/ieee80211.c 4 additions, 4 deletionsdrivers/staging/rtl8712/ieee80211.c
- drivers/staging/rtl8712/rtl8712_cmd.c 1 addition, 2 deletionsdrivers/staging/rtl8712/rtl8712_cmd.c
- drivers/staging/rtl8712/rtl8712_recv.c 2 additions, 5 deletionsdrivers/staging/rtl8712/rtl8712_recv.c
- drivers/staging/rtl8712/rtl871x_mlme.c 1 addition, 2 deletionsdrivers/staging/rtl8712/rtl871x_mlme.c
- drivers/staging/rtl8712/rtl871x_mp.c 1 addition, 2 deletionsdrivers/staging/rtl8712/rtl871x_mp.c
- drivers/staging/rtl8712/rtl871x_mp_ioctl.c 16 additions, 33 deletionsdrivers/staging/rtl8712/rtl871x_mp_ioctl.c
- drivers/staging/rtl8712/rtl871x_recv.c 1 addition, 3 deletionsdrivers/staging/rtl8712/rtl871x_recv.c
Loading
Please register or sign in to comment