summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/ath/ath10k/spectral.c
diff options
context:
space:
mode:
authorChristos Gkekas <chris.gekas@gmail.com>2017-10-27 11:12:35 +0300
committerKalle Valo <kvalo@qca.qualcomm.com>2017-10-27 16:48:50 +0300
commitd83c0d3293bbf3fe40ce9e1ac273309a44bbde91 (patch)
treed5b3106aa53d424a44e3a47ff503356082dfe005 /drivers/net/wireless/ath/ath10k/spectral.c
parente5b6853e9922f415765dd8032761e726be94d8b0 (diff)
downloadlinux-d83c0d3293bbf3fe40ce9e1ac273309a44bbde91.tar.xz
ath10k: spectral: remove redundant check in write_file_spectral_count()
Variable val is unsigned, so checking whether it is less than zero is redundant. Signed-off-by: Christos Gkekas <chris.gekas@gmail.com> Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath10k/spectral.c')
-rw-r--r--drivers/net/wireless/ath/ath10k/spectral.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath10k/spectral.c b/drivers/net/wireless/ath/ath10k/spectral.c
index dd9cc0939ea8..2048b1e5262b 100644
--- a/drivers/net/wireless/ath/ath10k/spectral.c
+++ b/drivers/net/wireless/ath/ath10k/spectral.c
@@ -406,7 +406,7 @@ static ssize_t write_file_spectral_count(struct file *file,
if (kstrtoul(buf, 0, &val))
return -EINVAL;
- if (val < 0 || val > 255)
+ if (val > 255)
return -EINVAL;
mutex_lock(&ar->conf_mutex);