staging: Remove unnecessary variables
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | staging: rtl8712: Remove unnecessary variablesdrivers/ | +4 | 0 replies | |
| 2/3 | staging: rtl8188eu: Remove unnecessary variablesdrivers/ | +1 | 0 replies | |
| 3/3 | staging: sm750fb: sm750: Remove unnecessary variabledrivers/ | +1 | 1 reply |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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