diff options
author | Dominik Brodowski <linux@dominikbrodowski.net> | 2011-07-29 18:27:34 +0200 |
---|---|---|
committer | Dominik Brodowski <linux@dominikbrodowski.net> | 2011-07-29 18:27:34 +0200 |
commit | 74411c04540404a1ff29d254584ef393e150aeda (patch) | |
tree | ea8cfb194417e3dd1682b53201e12e38ffedc1c2 /drivers/pcmcia | |
parent | orinoco_cs: be more careful when matching cards with ID 0x0156:0x0002 (diff) | |
download | linux-74411c04540404a1ff29d254584ef393e150aeda.tar.xz linux-74411c04540404a1ff29d254584ef393e150aeda.zip |
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/pcmcia')
0 files changed, 0 insertions, 0 deletions