summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless
diff options
context:
space:
mode:
authorArik Nemtsov2012-07-08 16:41:22 +0200
committerLuciano Coelho2012-07-18 14:08:21 +0200
commit602c7595a1560c0dea795759193b6e3a6246ea31 (patch)
treec4671530b6cc6a50b0cb917bd249cfbce2e5cd4c /drivers/net/wireless
parentwlcore: send EAPOLs using minimum basic rate for all roles (diff)
downloadkernel-qcow2-linux-602c7595a1560c0dea795759193b6e3a6246ea31.tar.gz
kernel-qcow2-linux-602c7595a1560c0dea795759193b6e3a6246ea31.tar.xz
kernel-qcow2-linux-602c7595a1560c0dea795759193b6e3a6246ea31.zip
wl18xx: fix bogus compile warning on cc config option
Initialize val to 0, to remove the following warning with CONFIG_CC_OPTIMIZE_FOR_SIZE. The compiler used was gcc 4.4.1 (Sourcery G++ Lite 2010q1-202). drivers/net/wireless/ti/wl18xx/io.c: In function 'wl18xx_top_reg_read': drivers/net/wireless/ti/wl18xx/io.c:57: warning: 'val' may be used uninitialized in this function Signed-off-by: Arik Nemtsov <arik@wizery.com> Signed-off-by: Luciano Coelho <coelho@ti.com>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r--drivers/net/wireless/ti/wl18xx/io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ti/wl18xx/io.c b/drivers/net/wireless/ti/wl18xx/io.c
index 0c06ccfd1b8c..f0abf3ef2c95 100644
--- a/drivers/net/wireless/ti/wl18xx/io.c
+++ b/drivers/net/wireless/ti/wl18xx/io.c
@@ -54,7 +54,7 @@ out:
int wl18xx_top_reg_read(struct wl1271 *wl, int addr, u16 *out)
{
- u32 val;
+ u32 val = 0;
int ret;
if (WARN_ON(addr % 2))