]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
usbip: remove check for negative values for an unsigned value
authorMárton Németh <nm127@freemail.hu>
Thu, 26 May 2011 07:24:45 +0000 (09:24 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 7 Jun 2011 20:54:19 +0000 (13:54 -0700)
commit988e7520818c4e9ac6d4b195376a46bb24a0dd99
tree4b845507fb64851296fafa2624e2879337975558
parent9ba422b346c9654ec78ee0a5b7c5db6e5d4c48dd
usbip: remove check for negative values for an unsigned value

The parameter rhport is unsigned so there is no need checking for
negative values.

This will remove the following warning message when compiling with "make W=1 ...":
  drivers/staging/usbip/vhci_sysfs.c: In function ‘valid_args’:
  drivers/staging/usbip/vhci_sysfs.c:138: warning: comparison of unsigned expression < 0 is always false

Signed-off-by: Márton Németh <nm127@freemail.hu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/usbip/vhci_sysfs.c