aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPandiyarajan Pitchaimuthu <c_ppitch@qca.qualcomm.com>2012-07-11 03:21:43 -0400
committerKalle Valo <kvalo@qca.qualcomm.com>2012-10-24 04:49:32 -0400
commit4aca81bfb0b13b927320448c6e4820ffb95f095b (patch)
tree9d46077edca3d03fc0ebe7e399cfe733a9fa9486
parentc95dcb595dde97510dd4bc98c3112fe4d5dbd71f (diff)
ath6kl: Make use of return value from ath6kl_diag_read()
In ath6kl_read_fwlogs(), return value from ath6kl_diag_read()is not used to bail out in case of any errors in reading fw log. No real issue is observed because of this, reported by source code analyzer. kvalo: fix a long line warning Signed-off-by: Pandiyarajan Pitchaimuthu <c_ppitch@qca.qualcomm.com> Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
-rw-r--r--drivers/net/wireless/ath/ath6kl/main.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/drivers/net/wireless/ath/ath6kl/main.c b/drivers/net/wireless/ath/ath6kl/main.c
index c189e28e86a9..6beffdee9a82 100644
--- a/drivers/net/wireless/ath/ath6kl/main.c
+++ b/drivers/net/wireless/ath/ath6kl/main.c
@@ -293,13 +293,17 @@ int ath6kl_read_fwlogs(struct ath6kl *ar)
293 } 293 }
294 294
295 address = TARG_VTOP(ar->target_type, debug_hdr_addr); 295 address = TARG_VTOP(ar->target_type, debug_hdr_addr);
296 ath6kl_diag_read(ar, address, &debug_hdr, sizeof(debug_hdr)); 296 ret = ath6kl_diag_read(ar, address, &debug_hdr, sizeof(debug_hdr));
297 if (ret)
298 goto out;
297 299
298 address = TARG_VTOP(ar->target_type, 300 address = TARG_VTOP(ar->target_type,
299 le32_to_cpu(debug_hdr.dbuf_addr)); 301 le32_to_cpu(debug_hdr.dbuf_addr));
300 firstbuf = address; 302 firstbuf = address;
301 dropped = le32_to_cpu(debug_hdr.dropped); 303 dropped = le32_to_cpu(debug_hdr.dropped);
302 ath6kl_diag_read(ar, address, &debug_buf, sizeof(debug_buf)); 304 ret = ath6kl_diag_read(ar, address, &debug_buf, sizeof(debug_buf));
305 if (ret)
306 goto out;
303 307
304 loop = 100; 308 loop = 100;
305 309
@@ -322,7 +326,8 @@ int ath6kl_read_fwlogs(struct ath6kl *ar)
322 326
323 address = TARG_VTOP(ar->target_type, 327 address = TARG_VTOP(ar->target_type,
324 le32_to_cpu(debug_buf.next)); 328 le32_to_cpu(debug_buf.next));
325 ath6kl_diag_read(ar, address, &debug_buf, sizeof(debug_buf)); 329 ret = ath6kl_diag_read(ar, address, &debug_buf,
330 sizeof(debug_buf));
326 if (ret) 331 if (ret)
327 goto out; 332 goto out;
328 333