]> Pileus Git - ~andy/linux/commitdiff
Staging: dgnc: removing the comparison 'board<0'
authorAshvini Varatharaj <ashvinivaratharaj@gmail.com>
Sat, 19 Oct 2013 07:56:44 +0000 (13:26 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 19 Oct 2013 21:35:05 +0000 (14:35 -0700)
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>
drivers/staging/dgnc/dgnc_mgmt.c

index 354458c5068eb4bcc36792e6023da1682b9d0659..1c5ab3d007b00e126348cf0b3cace1b250b9a81f 100644 (file)
@@ -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 */