mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/4] staging/rtl8187se: Remove the unnecessary initialization of a local variable in r8180_core.c
@ 2012-11-22  0:05 YAMANE Toshiaki
  2012-11-22  0:06 ` [PATCH 2/4] staging/rtl8187se: Remove an unnecessary line continuation " YAMANE Toshiaki
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: YAMANE Toshiaki @ 2012-11-22  0:05 UTC (permalink / raw)
  To: Greg Kroah-Hartman; +Cc: linux-kernel, YAMANE Toshiaki

The following errors fixed.
- ERROR: do not initialise statics to 0 or NULL

Signed-off-by: YAMANE Toshiaki <yamanetoshi@gmail.com>
---
 drivers/staging/rtl8187se/r8180_core.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/staging/rtl8187se/r8180_core.c b/drivers/staging/rtl8187se/r8180_core.c
index ea04eec..ea8dbb1 100644
--- a/drivers/staging/rtl8187se/r8180_core.c
+++ b/drivers/staging/rtl8187se/r8180_core.c
@@ -62,7 +62,7 @@ static struct pci_device_id rtl8180_pci_id_tbl[] __devinitdata = {
 };
 
 static char ifname[IFNAMSIZ] = "wlan%d";
-static int hwwep = 0;
+static int hwwep;
 
 MODULE_LICENSE("GPL");
 MODULE_DEVICE_TABLE(pci, rtl8180_pci_id_tbl);
@@ -201,7 +201,7 @@ static struct net_device_stats *rtl8180_stats(struct net_device *dev);
 void rtl8180_commit(struct net_device *dev);
 void rtl8180_start_tx_beacon(struct net_device *dev);
 
-static struct proc_dir_entry *rtl8180_proc = NULL;
+static struct proc_dir_entry *rtl8180_proc;
 
 static int proc_get_registers(char *page, char **start,
 			  off_t offset, int count,
@@ -3725,7 +3725,7 @@ void GPIOChangeRFWorkItemCallBack(struct work_struct *work)
 	char *argv[3];
 	static char *RadioPowerPath = "/etc/acpi/events/RadioPower.sh";
 	static char *envp[] = {"HOME=/", "TERM=linux", "PATH=/usr/bin:/bin", NULL};
-	static int readf_count = 0;
+	static int readf_count;
 
 	readf_count = (readf_count+1)%0xffff;
 	/* We should turn off LED before polling FF51[4]. */
-- 
1.7.9.5


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

end of thread, other threads:[~2012-11-22 19:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-22  0:05 [PATCH 1/4] staging/rtl8187se: Remove the unnecessary initialization of a local variable in r8180_core.c YAMANE Toshiaki
2012-11-22  0:06 ` [PATCH 2/4] staging/rtl8187se: Remove an unnecessary line continuation " YAMANE Toshiaki
2012-11-22  0:06 ` [PATCH 3/4] staging/rtl8187se: Fix spacing coding style " YAMANE Toshiaki
2012-11-22  0:07 ` [PATCH 4/4] staging/rtl8187se: Use dev_ or pr_ printks " YAMANE Toshiaki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®