linux-mips
[Top] [All Lists]

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

To: Ralf Baechle <ralf@linux-mips.org>, mipslist <linux-mips@linux-mips.org>
Subject: [PATCH]: sgiserial 3/7: globals are 0 initialized by default
From: Juan Quintela <quintela@mandrakesoft.com>
Date: Thu, 27 Mar 2003 03:54:08 +0100
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
Hi

globals are already zero initialized.


 build/drivers/sgi/char/sgiserial.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff -puN build/drivers/sgi/char/sgiserial.c~sgiserial_zero_initialize 
build/drivers/sgi/char/sgiserial.c
--- 24/build/drivers/sgi/char/sgiserial.c~sgiserial_zero_initialize     
2003-03-22 01:57:47.000000000 +0100
+++ 24-quintela/build/drivers/sgi/char/sgiserial.c      2003-03-22 
01:58:00.000000000 +0100
@@ -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;
 

_


-- 
In theory, practice and theory are the same, but in practice they 
are different -- Larry McVoy

<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH]: sgiserial 3/7: globals are 0 initialized by default, Juan Quintela <=