Commit 2c449e38 authored by Sasha Levin's avatar Sasha Levin Committed by Greg Kroah-Hartman

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: default avatarSasha Levin <sasha.levin@oracle.com>
Acked-by: default avatarFelipe Balbi <balbi@ti.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent a8ffa0be
...@@ -507,10 +507,8 @@ int main (int argc, char **argv) ...@@ -507,10 +507,8 @@ int main (int argc, char **argv)
return handle_testdev (entry) != entry; return handle_testdev (entry) != entry;
} }
status = pthread_create (&entry->thread, 0, handle_testdev, entry); status = pthread_create (&entry->thread, 0, handle_testdev, entry);
if (status) { if (status)
perror ("pthread_create"); perror ("pthread_create");
continue;
}
} }
if (device) { if (device) {
struct testdev dev; struct testdev dev;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment