Re: [PATCH] remove unnecessary zero initializations from aironet4500_proc.c (245ac1)

2001-06-01 Thread Pavel Machek

Hi!

> Hi.
> 
> The following patch removes two superfluous initializations
> from aironet4500_proc.c, making the .o ~12K smaller in
> size. It applies against 245ac1 and was discovered by Adam
> Ritcher some time ago.
>  
> --- linux-245-ac1-clean/drivers/net/aironet4500_proc.cSat May 19 20:58:24 
>2001
> +++ linux-245-ac1/drivers/net/aironet4500_proc.c  Mon May 28 22:13:26 2001
> @@ -59,7 +59,7 @@
>   charproc_name[10];
>  };   
>  static char awc_drive_info[AWC_STR_SIZE]="Zcom \n\0";
~~
When you are at cleaning, kill that ugly \0, too.

> -static char awc_proc_buff[AWC_STR_SIZE]="\0";
> +static char awc_proc_buff[AWC_STR_SIZE];



>  static int  awc_int_buff;
>  static struct awc_proc_private awc_proc_priv[MAX_AWCS]; 
>  
> @@ -403,7 +403,7 @@
>  {0}
>  };
>  
> -struct ctl_table_header * awc_driver_sysctl_header = NULL;
> +struct ctl_table_header * awc_driver_sysctl_header;
>  
>  const char awc_procname[]= "awc5";
Pavel

-- 
I'm [EMAIL PROTECTED] "In my country we have almost anarchy and I don't care."
Panos Katsaloulis describing me w.r.t. patents at [EMAIL PROTECTED]
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



Re: [PATCH] remove unnecessary zero initializations from aironet4500_proc.c (245ac1)

2001-06-01 Thread Pavel Machek

Hi!

 Hi.
 
 The following patch removes two superfluous initializations
 from aironet4500_proc.c, making the .o ~12K smaller in
 size. It applies against 245ac1 and was discovered by Adam
 Ritcher some time ago.
  
 --- linux-245-ac1-clean/drivers/net/aironet4500_proc.cSat May 19 20:58:24 
2001
 +++ linux-245-ac1/drivers/net/aironet4500_proc.c  Mon May 28 22:13:26 2001
 @@ -59,7 +59,7 @@
   charproc_name[10];
  };   
  static char awc_drive_info[AWC_STR_SIZE]=Zcom \n\0;
~~
When you are at cleaning, kill that ugly \0, too.

 -static char awc_proc_buff[AWC_STR_SIZE]=\0;
 +static char awc_proc_buff[AWC_STR_SIZE];



  static int  awc_int_buff;
  static struct awc_proc_private awc_proc_priv[MAX_AWCS]; 
  
 @@ -403,7 +403,7 @@
  {0}
  };
  
 -struct ctl_table_header * awc_driver_sysctl_header = NULL;
 +struct ctl_table_header * awc_driver_sysctl_header;
  
  const char awc_procname[]= awc5;
Pavel

-- 
I'm [EMAIL PROTECTED] In my country we have almost anarchy and I don't care.
Panos Katsaloulis describing me w.r.t. patents at [EMAIL PROTECTED]
-
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



[PATCH] remove unnecessary zero initializations from aironet4500_proc.c (245ac1)

2001-05-28 Thread Rasmus Andersen

(Forgot l-k again... :<)

- Forwarded message from Rasmus Andersen <[EMAIL PROTECTED]> -

Hi.

The following patch removes two superfluous initializations
from aironet4500_proc.c, making the .o ~12K smaller in
size. It applies against 245ac1 and was discovered by Adam
Ritcher some time ago.
 
--- linux-245-ac1-clean/drivers/net/aironet4500_proc.c  Sat May 19 20:58:24 2001
+++ linux-245-ac1/drivers/net/aironet4500_proc.cMon May 28 22:13:26 2001
@@ -59,7 +59,7 @@
charproc_name[10];
 }; 
 static char awc_drive_info[AWC_STR_SIZE]="Zcom \n\0";
-static char awc_proc_buff[AWC_STR_SIZE]="\0";
+static char awc_proc_buff[AWC_STR_SIZE];
 static int  awc_int_buff;
 static struct awc_proc_private awc_proc_priv[MAX_AWCS]; 
 
@@ -403,7 +403,7 @@
 {0}
 };
 
-struct ctl_table_header * awc_driver_sysctl_header = NULL;
+struct ctl_table_header * awc_driver_sysctl_header;
 
 const char awc_procname[]= "awc5";
-- 
Rasmus([EMAIL PROTECTED])

"If you aim the gun at your foot and pull the trigger, it's UNIX's job to 
ensure reliable delivery of the bullet to where you aimed the gun (in
this case, Mr. Foot)." -- Terry Lambert, FreeBSD-Hackers mailing list.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



[PATCH] remove unnecessary zero initializations from aironet4500_proc.c (245ac1)

2001-05-28 Thread Rasmus Andersen

(Forgot l-k again... :)

- Forwarded message from Rasmus Andersen [EMAIL PROTECTED] -

Hi.

The following patch removes two superfluous initializations
from aironet4500_proc.c, making the .o ~12K smaller in
size. It applies against 245ac1 and was discovered by Adam
Ritcher some time ago.
 
--- linux-245-ac1-clean/drivers/net/aironet4500_proc.c  Sat May 19 20:58:24 2001
+++ linux-245-ac1/drivers/net/aironet4500_proc.cMon May 28 22:13:26 2001
@@ -59,7 +59,7 @@
charproc_name[10];
 }; 
 static char awc_drive_info[AWC_STR_SIZE]=Zcom \n\0;
-static char awc_proc_buff[AWC_STR_SIZE]=\0;
+static char awc_proc_buff[AWC_STR_SIZE];
 static int  awc_int_buff;
 static struct awc_proc_private awc_proc_priv[MAX_AWCS]; 
 
@@ -403,7 +403,7 @@
 {0}
 };
 
-struct ctl_table_header * awc_driver_sysctl_header = NULL;
+struct ctl_table_header * awc_driver_sysctl_header;
 
 const char awc_procname[]= awc5;
-- 
Rasmus([EMAIL PROTECTED])

If you aim the gun at your foot and pull the trigger, it's UNIX's job to 
ensure reliable delivery of the bullet to where you aimed the gun (in
this case, Mr. Foot). -- Terry Lambert, FreeBSD-Hackers mailing list.
-
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/