From f14c83caffa16d4fc18b14e3f4315ce097d7ac22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rton=20N=C3=A9meth?= Date: Thu, 26 May 2011 09:24:45 +0200 Subject: [PATCH] --- yaml --- r: 259493 b: refs/heads/master c: 988e7520818c4e9ac6d4b195376a46bb24a0dd99 h: refs/heads/master i: 259491: ee214e2e51528d9791866ad7f89c0d6a99f15ab0 v: v3 --- [refs] | 2 +- trunk/drivers/staging/usbip/vhci_sysfs.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 8cbbba22dfa6..89a58b209518 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 9ba422b346c9654ec78ee0a5b7c5db6e5d4c48dd +refs/heads/master: 988e7520818c4e9ac6d4b195376a46bb24a0dd99 diff --git a/trunk/drivers/staging/usbip/vhci_sysfs.c b/trunk/drivers/staging/usbip/vhci_sysfs.c index d9736f9c4028..7b6e4a90212f 100644 --- a/trunk/drivers/staging/usbip/vhci_sysfs.c +++ b/trunk/drivers/staging/usbip/vhci_sysfs.c @@ -135,7 +135,7 @@ static DEVICE_ATTR(detach, S_IWUSR, NULL, store_detach); static int valid_args(__u32 rhport, enum usb_device_speed speed) { /* check rhport */ - if ((rhport < 0) || (rhport >= VHCI_NPORTS)) { + if (rhport >= VHCI_NPORTS) { pr_err("port %u\n", rhport); return -EINVAL; }