All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] staging: remove explicit intialization of static ints
@ 2015-03-12  4:26 Supriya Karanth
  2015-03-12  4:26 ` [PATCH 1/4] staging: i2o: remove " Supriya Karanth
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Supriya Karanth @ 2015-03-12  4:26 UTC (permalink / raw)
  To: iskaranth, outreachy-kernel

static integer variables are initialized to 0 by the compiler
and it's not necessary to explicitly intialize them

This patchset removes the explicit intialization.

This issue was found by checkpatch.pl :
ERROR: do not initialise statics to 0 or NULL

These changes were made using coccinelle script:
@@
type T;
identifier var;
@@
static T var
- =0
;

Supriya Karanth (4):
  staging: i2o: remove intialization of static ints
  staging: rtl8188eu: remove intialization of static ints
  staging: rtl8723au: remove intialization of static ints
  staging: sm750fb: remove intialization of static ints

 drivers/staging/i2o/i2o_block.c               | 2 +-
 drivers/staging/i2o/i2o_config.c              | 2 +-
 drivers/staging/i2o/iop.c                     | 2 +-
 drivers/staging/rtl8188eu/os_dep/os_intfs.c   | 2 +-
 drivers/staging/rtl8723au/core/rtw_security.c | 2 +-
 drivers/staging/rtl8723au/os_dep/os_intfs.c   | 2 +-
 drivers/staging/sm750fb/sm750.c               | 6 +++---
 7 files changed, 9 insertions(+), 9 deletions(-)

-- 
2.1.0



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

end of thread, other threads:[~2015-03-12  4:27 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-12  4:26 [PATCH 0/4] staging: remove explicit intialization of static ints Supriya Karanth
2015-03-12  4:26 ` [PATCH 1/4] staging: i2o: remove " Supriya Karanth
2015-03-12  4:26 ` [PATCH 2/4] staging: rtl8188eu: " Supriya Karanth
2015-03-12  4:26 ` [PATCH 3/4] staging: rtl8723au: " Supriya Karanth
2015-03-12  4:26 ` [PATCH 4/4] staging: sm750fb: " Supriya Karanth

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.