summaryrefslogtreecommitdiffstats
path: root/drivers/staging/dgnc/dgnc_mgmt.c
diff options
context:
space:
mode:
authorAshvini Varatharaj2013-10-19 09:56:44 +0200
committerGreg Kroah-Hartman2013-10-19 23:35:05 +0200
commite15b0c4eeb88ed5f37ed2e887b6610bd1aa44348 (patch)
treedd11226b0de8fcd1e7ea7704cf592da61db22094 /drivers/staging/dgnc/dgnc_mgmt.c
parentstaging: dgnc: braces {} are not necessary for single statement in dgnc_driver.c (diff)
downloadkernel-qcow2-linux-e15b0c4eeb88ed5f37ed2e887b6610bd1aa44348.tar.gz
kernel-qcow2-linux-e15b0c4eeb88ed5f37ed2e887b6610bd1aa44348.tar.xz
kernel-qcow2-linux-e15b0c4eeb88ed5f37ed2e887b6610bd1aa44348.zip
Staging: dgnc: removing the comparison 'board<0'
Fix dgnc_mgmt_ioctl() warn: unsigned 'board' is never less than zero. Signed-off-by: Ashvini Varatharaj <ashvinivaratharaj@gmail.com> Reviewed-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/dgnc/dgnc_mgmt.c')
-rw-r--r--drivers/staging/dgnc/dgnc_mgmt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/dgnc/dgnc_mgmt.c b/drivers/staging/dgnc/dgnc_mgmt.c
index 354458c5068e..1c5ab3d007b0 100644
--- a/drivers/staging/dgnc/dgnc_mgmt.c
+++ b/drivers/staging/dgnc/dgnc_mgmt.c
@@ -220,7 +220,7 @@ long dgnc_mgmt_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
channel = ni.channel;
/* Verify boundaries on board */
- if ((board < 0) || (board > dgnc_NumBoards) || (dgnc_NumBoards == 0))
+ if ((board > dgnc_NumBoards) || (dgnc_NumBoards == 0))
return -ENODEV;
/* Verify boundaries on channel */