RE: [PATCH 1/2] usb: xhci: ring: simplify count_trbs() a little bit

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

David Laight <David.Laight@xxxxxxxxxx> writes:
> From: Felipe Balbi
>> Sent: 06 April 2016 14:25
>> If we _know_ length is 0, we can just return 1 early.
>
> Does that happen often enough to be an optimisation?
> Looks like a mispredicted branch to me.

it's not optimizing, it's cleaning it up. Code looks a little clearer.

-- 
balbi

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux