Skip to content

staging: Remove unnecessary variables

Amitoj Kaur Chawla outreachy 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3staging: rtl8712: Remove unnecessary variablesdrivers/staging/rtl8712/rtl871x_mp.c+4 -60 replies
2/3staging: rtl8188eu: Remove unnecessary variablesdrivers/staging/rtl8188eu/hal/fw.c+1 -40 replies
3/3staging: sm750fb: sm750: Remove unnecessary variabledrivers/staging/sm750fb/sm750.c+1 -31 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] staging: Remove unnecessary variables

This patchset removes unnecessary variables that can be replaced with a single line of code.

The semantic patch used to find this is:

// <smpl>
@@
expression ret;
@@
- if (ret) return ret;
- return 0;
+ return ret;

@@
local idexpression ret;
expression e;
@@
- ret = e;
- return ret;
+ return e;

@@
type T;
identifier i;
expression E;
@@
- T i = E;
... when != i

@@
type T;
identifier i;
@@
- T i;
... when != i
// </smpl>

Amitoj Kaur Chawla (3):
staging: rtl8712: Remove unnecessary variables
staging: rtl8188eu: Remove unnecessary variables
staging: sm750fb: sm750: Remove unnecessary variable

 drivers/staging/rtl8188eu/hal/fw.c   |  5 +----
 drivers/staging/rtl8712/rtl871x_mp.c | 10 ++++------
 drivers/staging/sm750fb/sm750.c      |  4 +---
 3 files changed, 6 insertions(+), 13 deletions(-)
Signature · 1 line
1.9.1