Skip to contentSkip to conversation

: sgiserial 3/7: globals are 0 initialized by default

PATCH New Juan Quintela 1 participant 1 message Mar 27, 2003 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 : sgiserial 3/7: globals are 0 initialized by default

Hi

globals are already zero initialized.

 build/drivers/sgi/char/sgiserial.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
build/drivers/sgi/char/sgiserial.c renamed from build/drivers/sgi/char/sgiserial.c~sgiserial_zero_initialize +2 -2
diff -puN build/drivers/sgi/char/sgiserial.c~sgiserial_zero_initialize build/drivers/sgi/char/sgiserial.c
@@ -49,8 +49,8 @@
 #define NUM_SERIAL 1     /* One chip on board. */
 #define NUM_CHANNELS (NUM_SERIAL * 2)
 
-struct sgi_zslayout *zs_chips[NUM_SERIAL] = { 0, };
-struct sgi_zschannel *zs_channels[NUM_CHANNELS] = { 0, 0, };
+struct sgi_zslayout *zs_chips[NUM_SERIAL];
+struct sgi_zschannel *zs_channels[NUM_CHANNELS];
 struct sgi_zschannel *zs_conschan;
 struct sgi_zschannel *zs_kgdbchan;
 

_

Signature · 2 lines
In theory, practice and theory are the same, but in practice they 
are different -- Larry McVoy