Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e15b0c4e authored by Ashvini Varatharaj's avatar Ashvini Varatharaj Committed by Greg Kroah-Hartman
Browse files

Staging: dgnc: removing the comparison 'board<0'



Fix dgnc_mgmt_ioctl() warn: unsigned 'board' is never less than zero.

Signed-off-by: default avatarAshvini Varatharaj <ashvinivaratharaj@gmail.com>
Reviewed-by: default avatarPeter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent a2758231
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 */