Skip to content

Commit

Permalink
staging/rtl8187se: Remove the unnecessary initialization of a local v…
Browse files Browse the repository at this point in the history
…ariable in r8180_core.c

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

Signed-off-by: YAMANE Toshiaki <yamanetoshi@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
YAMANE Toshiaki authored and Greg Kroah-Hartman committed Nov 27, 2012
1 parent e3f27c7 commit 49bd136
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/staging/rtl8187se/r8180_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ static struct pci_device_id rtl8180_pci_id_tbl[] = {
};

static char ifname[IFNAMSIZ] = "wlan%d";
static int hwwep = 0;
static int hwwep;

MODULE_LICENSE("GPL");
MODULE_DEVICE_TABLE(pci, rtl8180_pci_id_tbl);
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -3726,7 +3726,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]. */
Expand Down

0 comments on commit 49bd136

Please sign in to comment.