Skip to content

rewrite the right hand side of an assignment

Aya Mahfouz outreachy 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest24 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/24staging: xgifb: rewrite the right hand side of an assignmentdrivers/staging/xgifb/vb_setmode.c+70 -700 replies
2/24staging: rtl8723au: rewrite the right hand side of an assignmentdrivers/staging/rtl8723au/hal/hal_com.c+1 -10 replies
3/24staging: rtl8723au: hal: rewrite the right hand side of an assignmentdrivers/staging/rtl8723au/hal/HalHWImg8723A_RF.c+2 -20 replies
4/24staging: rtl8723au: hal: rewrite the right hand side of an assignmentdrivers/staging/rtl8723au/hal/HalHWImg8723A_MAC.c+2 -20 replies
5/24staging: rtl8723au: hal: rewrite the right hand side of an assignmentdrivers/staging/rtl8723au/hal/HalHWImg8723A_BB.c+2 -20 replies
6/24staging: rtl8712: rewrite the right hand side of an assignmentdrivers/staging/rtl8712/rtl871x_security.c+2 -20 replies
7/24staging: rtl8712: rewrite the right hand side of an assignmentdrivers/staging/rtl8712/rtl871x_eeprom.c+2 -20 replies
8/24staging: rtl8712: rewrite the right hand side of an assignmentdrivers/staging/rtl8712/rtl8712_recv.c+5 -50 replies
9/24staging: rtl8712: rewrite the right hand side of an assignmentdrivers/staging/rtl8712/rtl8712_cmd.c+1 -10 replies
10/24staging: rtl8192u: rewrite the right hand side of an assignmentdrivers/staging/rtl8192u/r8192U_core.c+2 -20 replies
11/24staging: rtl8192u: rewrite the right hand side of an assignmentdrivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c+1 -10 replies
12/24staging: rtl8192e: rewrite the right hand side of an assignmentdrivers/staging/rtl8192e/rtl819x_HTProc.c+1 -10 replies
13/24staging: rtl8192e: rewrite the right hand side of an assignmentdrivers/staging/rtl8192e/rtl8192e/r8192E_dev.c+2 -20 replies
14/24staging: rtl8188eu: rewrite the right hand side of an assignmentdrivers/staging/rtl8188eu/hal/usb_halinit.c+1 -10 replies
15/24staging: rtl8188eu: rewrite the right hand side of an assignmentdrivers/staging/rtl8188eu/hal/rf_cfg.c+2 -20 replies
16/24staging: rtl8188eu: rewrite the right hand side of an assignmentdrivers/staging/rtl8188eu/hal/Hal8188ERateAdaptive.c+1 -10 replies
17/24staging: rtl8188eu: rewrite the right hand side of an assignmentdrivers/staging/rtl8188eu/core/rtw_security.c+2 -20 replies
18/24staging: media: davinci_vpfe: rewrite the right hand side of an assignmentdrivers/staging/media/davinci_vpfe/dm365_ipipeif.c+1 -10 replies
19/24staging: lustre: lov: rewrite the right hand side of an assignmentdrivers/staging/lustre/lustre/lov/lov_obd.c+1 -10 replies
20/24staging: lustre: lmv: rewrite the right hand side of an assignmentdrivers/staging/lustre/lustre/lmv/lmv_obd.c+1 -10 replies
21/24staging: lustre: libcfs: rewrite the right hand side of an assignmentdrivers/staging/lustre/lustre/libcfs/debug.c+1 -10 replies
22/24staging: iio: Documentation: rewrite the right hand side of an assignmentdrivers/staging/iio/Documentation/generic_buffer.c+1 -10 replies
23/24staging: emxx_udc: rewrite the right hand side of an assignmentdrivers/staging/emxx_udc/emxx_udc.c+2 -20 replies
24/24staging: comedi: rewrite the right hand side of an assignmentdrivers/staging/comedi/drivers/rtd520.c+2 -20 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 00/24] rewrite the right hand side of an assignment

This patchset is concerned with rewriting the right hand side of an assignment for expressions of the form:
a = (a <op> b);
to be:
a <op>= b;
where <op> = << | >>.

The set resolves the issue in the following staging drivers:

comedi
emxx_udc
iio
lustre
media/davinci_vpfe
rtl8188eu
rtl8192e
rtl8192u
rtl8712
rtl8723au
xgifb

The issue was detected and resolved using the following coccinelle script:

@@
identifier i;
expression e;
@@

-i = (i >> e);
+i >>= e;

@@
identifier i;
expression e;
@@

-i = (i << e);
+i <<= e;

Aya Mahfouz (24):
staging: xgifb: rewrite the right hand of an assignment
staging: rtl8723au: rewrite the right hand of an assignment
staging: rtl8723au: hal: rewrite the right hand of an assignment
staging: rtl8723au: hal: rewrite the right hand of an assignment
staging: rtl8723au: hal: rewrite the right hand of an assignment
staging: rtl8712: rewrite the right hand of an assignment
staging: rtl8712: rewrite the right hand of an assignment
staging: rtl8712: rewrite the right hand of an assignment
staging: rtl8712: rewrite the right hand of an assignment
staging: rtl8192u: rewrite the right hand of an assignment
staging: rtl8192u: rewrite the right hand side of an assignment
staging: rtl8192e: rewrite the right hand side of an assignment
staging: rtl8192e: rewrite the right hand side of an assignment
staging: rtl8188eu: rewrite the right hand side of an assignment
staging: rtl8188eu: rewrite the right hand side of an assignment
staging: rtl8188eu: rewrite the right hand side of an assignment
staging: rtl8188eu: rewrite the right hand side of an assignment
staging: davinci_vpfe: rewrite the right hand side of an assignment
staging: lustre: lov: rewrite the right hand side of an assignment
staging: lustre: lmv: rewrite the right hand side of an assignment
staging: lustre: libcfs: rewrite the right hand side of an assignment
staging: iio: Documentation: rewrite the right hand side of an
assignment
staging: emxx_udc: rewrite the right hand side of an assignment
staging: comedi: rewrite the right hand side of an assignment

 drivers/staging/comedi/drivers/rtd520.c            |   4 +-
 drivers/staging/emxx_udc/emxx_udc.c                |   4 +-
 drivers/staging/iio/Documentation/generic_buffer.c |   2 +-
 drivers/staging/lustre/lustre/libcfs/debug.c       |   2 +-
 drivers/staging/lustre/lustre/lmv/lmv_obd.c        |   2 +-
 drivers/staging/lustre/lustre/lov/lov_obd.c        |   2 +-
 drivers/staging/media/davinci_vpfe/dm365_ipipeif.c |   2 +-
 drivers/staging/rtl8188eu/core/rtw_security.c      |   4 +-
 .../staging/rtl8188eu/hal/Hal8188ERateAdaptive.c   |   2 +-
 drivers/staging/rtl8188eu/hal/rf_cfg.c             |   4 +-
 drivers/staging/rtl8188eu/hal/usb_halinit.c        |   2 +-
 drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c     |   4 +-
 drivers/staging/rtl8192e/rtl819x_HTProc.c          |   2 +-
 .../staging/rtl8192u/ieee80211/rtl819x_HTProc.c    |   2 +-
 drivers/staging/rtl8192u/r8192U_core.c             |   4 +-
 drivers/staging/rtl8712/rtl8712_cmd.c              |   2 +-
 drivers/staging/rtl8712/rtl8712_recv.c             |  10 +-
 drivers/staging/rtl8712/rtl871x_eeprom.c           |   4 +-
 drivers/staging/rtl8712/rtl871x_security.c         |   4 +-
 drivers/staging/rtl8723au/hal/HalHWImg8723A_BB.c   |   4 +-
 drivers/staging/rtl8723au/hal/HalHWImg8723A_MAC.c  |   4 +-
 drivers/staging/rtl8723au/hal/HalHWImg8723A_RF.c   |   4 +-
 drivers/staging/rtl8723au/hal/hal_com.c            |   2 +-
 drivers/staging/xgifb/vb_setmode.c                 | 140 ++++++++++-----------
 24 files changed, 108 insertions(+), 108 deletions(-)
Signature · 6 lines
1.9.3


-- 
Kind Regards,
Aya Saif El-yazal Mahfouz