mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-18 17:54:13 +08:00
wl3501_cs: remove pedantic build warning
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>
This commit is contained in:
parent
98d3a7ca92
commit
a2fb0ad30a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user