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:
Родитель
a27582310c
Коммит
e15b0c4eeb
|
@ -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 */
|
||||
|
|
Загрузка…
Ссылка в новой задаче