lkml.org 
[lkml]   [2012]   [Dec]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] tools/usb: remove unneeded 'continue' and simplify condition
On Thu, Dec 20, 2012 at 02:11:15PM -0500, Sasha Levin wrote:
> 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>

> ---
> tools/usb/testusb.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/tools/usb/testusb.c b/tools/usb/testusb.c
> index 68d0734..643cd77 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;
> --
> 1.8.0
>

--
balbi
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2012-12-20 22:01    [W:0.210 / U:0.900 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site