Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Sasha Levin and committed by
Greg Kroah-Hartman
2c449e38 a8ffa0be

+1 -3
+1 -3
tools/usb/testusb.c
··· 507 507 return handle_testdev (entry) != entry; 508 508 } 509 509 status = pthread_create (&entry->thread, 0, handle_testdev, entry); 510 - if (status) { 510 + if (status) 511 511 perror ("pthread_create"); 512 - continue; 513 - } 514 512 } 515 513 if (device) { 516 514 struct testdev dev;