aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath6kl
diff options
context:
space:
mode:
authorRaja Mani <rmani@qca.qualcomm.com>2012-01-12 04:31:48 -0500
committerKalle Valo <kvalo@qca.qualcomm.com>2012-01-13 06:52:41 -0500
commite80ec84d9352419a7c0482edfbf1b96eaa4c8b95 (patch)
tree78c97cddb4ea93a30a5f411cd7a6bfa518ef3c86 /drivers/net/wireless/ath/ath6kl
parentc1762a3fe196483981f91b926f5f6ee18af757f2 (diff)
ath6kl: Remove useless initialization in ath6kl_read_fwlogs()
ath6kl_read_fwlogs() assigns the value zero to the variable 'ret' at the time of declaration. Later, return value of ath6kl_diag_read32() repalces the init value. Hence removing useless zero assignment. Signed-off-by: Raja Mani <rmani@qca.qualcomm.com> Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath6kl')
-rw-r--r--drivers/net/wireless/ath/ath6kl/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath6kl/main.c b/drivers/net/wireless/ath/ath6kl/main.c
index 53f97db4a7a7..0a6d6e2be6e9 100644
--- a/drivers/net/wireless/ath/ath6kl/main.c
+++ b/drivers/net/wireless/ath/ath6kl/main.c
@@ -255,7 +255,7 @@ int ath6kl_read_fwlogs(struct ath6kl *ar)
255 struct ath6kl_dbglog_hdr debug_hdr; 255 struct ath6kl_dbglog_hdr debug_hdr;
256 struct ath6kl_dbglog_buf debug_buf; 256 struct ath6kl_dbglog_buf debug_buf;
257 u32 address, length, dropped, firstbuf, debug_hdr_addr; 257 u32 address, length, dropped, firstbuf, debug_hdr_addr;
258 int ret = 0, loop; 258 int ret, loop;
259 u8 *buf; 259 u8 *buf;
260 260
261 buf = kmalloc(ATH6KL_FWLOG_PAYLOAD_SIZE, GFP_KERNEL); 261 buf = kmalloc(ATH6KL_FWLOG_PAYLOAD_SIZE, GFP_KERNEL);