Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1602098 > unrolled thread

Re: ath10k: remove redundant error check

Started byKalle Valo <kvalo@qca.qualcomm.com>
First post2017-03-16 10:00 +0100
Last post2017-03-16 10:00 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: ath10k: remove redundant error check Kalle Valo <kvalo@qca.qualcomm.com> - 2017-03-16 10:00 +0100

#1602098 — Re: ath10k: remove redundant error check

FromKalle Valo <kvalo@qca.qualcomm.com>
Date2017-03-16 10:00 +0100
SubjectRe: ath10k: remove redundant error check
Message-ID<tlzqi-4aX-17@gated-at.bofh.it>
Colin Ian King <colin.king@canonical.com> wrote:
> From: Colin Ian King <colin.king@canonical.com>
> 
> The check on ret for an error is redundant because it is already been
> checked for non-zero earlier on and ret is never non-zero at this point.
> Fix this by removing the redundant check and error message.
> 
> Detected by CoverityScan, CID#1357170 ("Logically Dead Code")
> 
> Signed-off-by: Colin Ian King <colin.king@canonical.com>

Patch applied to ath-next branch of ath.git, thanks.

51f60b8b6979 ath10k: remove redundant error check

-- 
https://patchwork.kernel.org/patch/9595221/

Documentation about submitting wireless patches and checking status
from patchwork:

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web