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 коммит произвёл Greg Kroah-Hartman
Родитель a27582310c
Коммит e15b0c4eeb
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

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