Skip to content

Use ARRAY_SIZE macro

Shraddha Barke outreachy 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2Staging: sm750fb: Use ARRAY_SIZE macrodrivers/staging/sm750fb/ddk750_chip.c+2 -23 replies
2/2Staging: speakup: Use ARRAY_SIZE macrodrivers/staging/speakup/i18n.c+1 -10 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/2] Use ARRAY_SIZE macro

Used ARRAY_SIZE macro instead of sizeof(x)/sizeof(x[0]) Coccinelle is used to make the changes-

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

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

Shraddha Barke (2):
Staging: sm750fb: Use ARRAY_SIZE macro
Staging: speakup: Use ARRAY_SIZE macro

 drivers/staging/sm750fb/ddk750_chip.c | 4 ++--
 drivers/staging/speakup/i18n.c        | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
Signature · 1 line
2.1.4