aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/pcmcia
diff options
context:
space:
mode:
authorDominik Brodowski <linux@dominikbrodowski.net>2011-07-29 12:27:34 -0400
committerDominik Brodowski <linux@dominikbrodowski.net>2011-07-29 12:27:34 -0400
commit74411c04540404a1ff29d254584ef393e150aeda (patch)
treeea8cfb194417e3dd1682b53201e12e38ffedc1c2 /drivers/net/pcmcia
parent49e58a932f6a35ad3d4888b5f66b27d4e20d990d (diff)
smc91c92_cs.c: fix bogus compiler warning
On a recent compile, I got this warning: CC [M] drivers/net/pcmcia/smc91c92_cs.o drivers/net/pcmcia/smc91c92_cs.c: In function ‘smc91c92_probe’: drivers/net/pcmcia/smc91c92_cs.c:812:12: warning: ‘j’ may be used uninitialized in this function However, "j" is only used in a branch which has the same condition as a previous branch, where j is set, e.g. int j; if (CONDITION) j = VALUE ... if (CONDITION) printk(j) Still, avoid this warning, as it is easy to circumvent. Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Diffstat (limited to 'drivers/net/pcmcia')
-rw-r--r--drivers/net/pcmcia/smc91c92_cs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/pcmcia/smc91c92_cs.c b/drivers/net/pcmcia/smc91c92_cs.c
index 1cd9394c3359..cffbc0373fa9 100644
--- a/drivers/net/pcmcia/smc91c92_cs.c
+++ b/drivers/net/pcmcia/smc91c92_cs.c
@@ -809,7 +809,7 @@ static int smc91c92_config(struct pcmcia_device *link)
809 struct net_device *dev = link->priv; 809 struct net_device *dev = link->priv;
810 struct smc_private *smc = netdev_priv(dev); 810 struct smc_private *smc = netdev_priv(dev);
811 char *name; 811 char *name;
812 int i, j, rev; 812 int i, rev, j = 0;
813 unsigned int ioaddr; 813 unsigned int ioaddr;
814 u_long mir; 814 u_long mir;
815 815