All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Use ARRAY_SIZE macro
@ 2015-10-07 12:49 Shraddha Barke
  2015-10-07 12:49 ` [PATCH 1/2] Staging: sm750fb: " Shraddha Barke
  2015-10-07 12:49 ` [PATCH 2/2] Staging: speakup: " Shraddha Barke
  0 siblings, 2 replies; 6+ messages in thread
From: Shraddha Barke @ 2015-10-07 12:49 UTC (permalink / raw)
  To: outreachy-kernel

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(-)

-- 
2.1.4



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-10-08 10:48 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-07 12:49 [PATCH 0/2] Use ARRAY_SIZE macro Shraddha Barke
2015-10-07 12:49 ` [PATCH 1/2] Staging: sm750fb: " Shraddha Barke
2015-10-08  7:05   ` [Outreachy kernel] " Julia Lawall
2015-10-08  8:49   ` Greg KH
2015-10-08 10:48     ` Shraddha Barke
2015-10-07 12:49 ` [PATCH 2/2] Staging: speakup: " Shraddha Barke

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.