From: Raja Mani Date: Thu, 12 Jan 2012 09:31:48 +0000 (+0530) Subject: ath6kl: Remove useless initialization in ath6kl_read_fwlogs() X-Git-Tag: v3.4-rc1~177^2~48^2~55^2~80 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e80ec84d9352419a7c0482edfbf1b96eaa4c8b95;p=platform%2Fkernel%2Flinux-3.10.git 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 Signed-off-by: Kalle Valo --- diff --git a/drivers/net/wireless/ath/ath6kl/main.c b/drivers/net/wireless/ath/ath6kl/main.c index 53f97db..0a6d6e2 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) struct ath6kl_dbglog_hdr debug_hdr; struct ath6kl_dbglog_buf debug_buf; u32 address, length, dropped, firstbuf, debug_hdr_addr; - int ret = 0, loop; + int ret, loop; u8 *buf; buf = kmalloc(ATH6KL_FWLOG_PAYLOAD_SIZE, GFP_KERNEL);