Skip to content

Use ARRAY_SIZE macro

Shraddha Barke outreachy 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3Staging: sm750fb: Use ARRAY_SIZE macrodrivers/staging/sm750fb/ddk750_chip.c+2 -20 replies
2/3Staging: rtl8712: Use ARRAY_SIZE macrodrivers/staging/rtl8712/usb_intf.c+1 -20 replies
3/3Staging: rtl8188eu: core: Use ARRAY_SIZE macrodrivers/staging/rtl8188eu/core/rtw_mlme_ext.c drivers/staging/rtl8188eu/core/rtw_rf.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 0/3] Use ARRAY_SIZE macro

Use ARRAY_SIZE macro.
Coccinelle is used to make the changes-

@@
type T;
T[] E;
@@

- (sizeof(E)/sizeof(T))
+ ARRAY_SIZE(E)

Shraddha Barke (3):
Staging: sm750fb: Use ARRAY_SIZE macro
Staging: rtl8712: Use ARRAY_SIZE macro
Staging: rtl8188eu: core: Use ARRAY_SIZE macro

 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c | 2 +-
 drivers/staging/rtl8188eu/core/rtw_rf.c       | 2 +-
 drivers/staging/rtl8712/usb_intf.c            | 3 +--
 drivers/staging/sm750fb/ddk750_chip.c         | 4 ++--
 4 files changed, 5 insertions(+), 6 deletions(-)
Signature · 1 line
2.1.4