Re: [PATCH] usb: dwc3: gadget: Update chain bit correctly when using sg list

From: Felipe Balbi
Date: Wed Feb 19 2020 - 04:29:27 EST



Hi,

John Stultz <john.stultz@xxxxxxxxxx> writes:
>> unsigned chain = (i < remaining - 1);
>>
>
> Personally, I think doing it via the conditional makes the logic a bit
> less taxing to read/skim. So I might keep that bit as is.

I agree, it's easier to follow the code. Compiler is, mostly, likely
optimizing that anyway.

--
balbi

Attachment: signature.asc
Description: PGP signature