wl3501_cs: remove pedantic build warning
authorJohn W. Linville <linville@tuxdriver.com>
Wed, 18 Nov 2009 21:37:22 +0000 (16:37 -0500)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 18 Nov 2009 22:09:25 +0000 (17:09 -0500)
drivers/net/wireless/wl3501_cs.c: In function ‘wl3501_esbq_exec’:
drivers/net/wireless/wl3501_cs.c:387: warning: ‘tmp’ is used uninitialized in this function
drivers/net/wireless/wl3501_cs.c:384: note: ‘tmp’ was declared here

Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/wl3501_cs.c

index 4f1e0cfe609ba5dec34f73364994b294bdfd3a8a..891bdab49887306317796d7d3a5fde92b23067f8 100644 (file)
@@ -381,7 +381,7 @@ static void wl3501_free_tx_buffer(struct wl3501_card *this, u16 ptr)
 
 static int wl3501_esbq_req_test(struct wl3501_card *this)
 {
-       u8 tmp;
+       u8 tmp = 0;
 
        wl3501_get_from_wla(this, this->esbq_req_head + 3, &tmp, sizeof(tmp));
        return tmp & 0x80;