Skip to content

Commit

Permalink
tools/usb: remove unneeded 'continue' and simplify condition
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
sashalevin authored and gregkh committed Jan 12, 2013
1 parent a8ffa0b commit 2c449e3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tools/usb/testusb.c
Original file line number Diff line number Diff line change
Expand Up @@ -507,10 +507,8 @@ int main (int argc, char **argv)
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;
Expand Down

0 comments on commit 2c449e3

Please sign in to comment.