summaryrefslogtreecommitdiffstats
path: root/tools/usb/testusb.c
diff options
context:
space:
mode:
authorSasha Levin <sasha.levin@oracle.com>2012-12-20 20:11:15 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-01-12 01:03:37 +0100
commit2c449e380153b72e184dd253ce6470acaee53cb0 (patch)
tree12b2e1733886625a21ada19526b6500e97a7695a /tools/usb/testusb.c
parentusb: serial: keyspan: fixed coding style issues (diff)
downloadlinux-2c449e380153b72e184dd253ce6470acaee53cb0.tar.xz
linux-2c449e380153b72e184dd253ce6470acaee53cb0.zip
tools/usb: remove unneeded 'continue' and simplify condition
Basically remove unneeded code. Since that 'continue' is at the end of the for() there's no need for it. Signed-off-by: Sasha Levin <sasha.levin@oracle.com> Acked-by: Felipe Balbi <balbi@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/usb/testusb.c')
-rw-r--r--tools/usb/testusb.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/tools/usb/testusb.c b/tools/usb/testusb.c
index 68d0734b2081..643cd77fa980 100644
--- a/tools/usb/testusb.c
+++ b/tools/usb/testusb.c
@@ -507,10 +507,8 @@ usage:
return handle_testdev (entry) != entry;
}
status = pthread_create (&entry->thread, 0, handle_testdev, entry);
- if (status) {
+ if (status)
perror ("pthread_create");
- continue;
- }
}
if (device) {
struct testdev dev;