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>
This commit is contained in:
Ashvini Varatharaj 2013-10-19 13:26:44 +05:30 committed by Greg Kroah-Hartman
parent a27582310c
commit e15b0c4eeb
1 changed files with 1 additions and 1 deletions

View 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 */