lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Sat, 12 Dec 2015 12:48:42 -0300
From:	"Geyslan G. Bem" <geyslan@...il.com>
To:	Sergei Shtylyov <sergei.shtylyov@...entembedded.com>
Cc:	Peter Senna Tschudin <peter.senna@...il.com>,
	linux-usb@...r.kernel.org, LKML <linux-kernel@...r.kernel.org>,
	Alan Stern <stern@...land.harvard.edu>,
	Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Subject: Re: [PATCH 10/10] usb: host: ehci-sched: remove unnecessary braces

2015-12-12 11:50 GMT-03:00 Sergei Shtylyov <sergei.shtylyov@...entembedded.com>:
> On 12/12/2015 4:19 AM, Geyslan G. Bem wrote:
>
>> This patch removes unnecessary braces in single statement blocks at the
>> same time as replaces the if statement with a ternary conditional.
>>
>> Tested by compilation only.
>> Caught by checkpatch.
>>
>> Signed-off-by: Geyslan G. Bem <geyslan@...il.com>
>> ---
>>   drivers/usb/host/ehci-sched.c | 6 +-----
>>   1 file changed, 1 insertion(+), 5 deletions(-)
>>
>> diff --git a/drivers/usb/host/ehci-sched.c b/drivers/usb/host/ehci-sched.c
>> index 1dc1d5c..f6e828a 100644
>> --- a/drivers/usb/host/ehci-sched.c
>> +++ b/drivers/usb/host/ehci-sched.c
>> @@ -1060,11 +1060,7 @@ iso_stream_init(
>>         epnum = usb_pipeendpoint(urb->pipe);
>>         is_input = usb_pipein(urb->pipe) ? USB_DIR_IN : 0;
>>         maxp = usb_endpoint_maxp(&urb->ep->desc);
>> -       if (is_input) {
>> -               buf1 = (1 << 11);
>> -       } else {
>> -               buf1 = 0;
>> -       }
>> +       buf1 = (is_input) ? (1 << 11) : 0;
>
>
>    Parens not needed, especially the first ones.
Right. Removing them.

After changing those patches should I resend the whole bunch with v2
tag, or only the changed ones?

And about a sequential patch that I sent for the same file, is it
better leave it out or add it to the bunch?
[PATCH] usb: host: ehci-sched: silence checkpatch warning

Tks.

>
> [...]
>
> MBR, Sergei
>



-- 
Regards,

Geyslan G. Bem
hackingbits.com
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ