Re: [PATCH v5 02/12] HID: pidff: Do not send effect envelope if it's empty

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

 



On Tue, 21 Jan 2025 at 14:01, Oliver Neukum <oneukum@xxxxxxxx> wrote:
>
> This boolean statement stems from a common result, not from a common
> logical reason for acting so. This is clear because if the first half
> is true, you are returning itself.
>
> This statement would be so much more clear as:
>
> if (!needs_new_envelope)
>         return false;
>
> if (!old)
>         return needs_new_envelope;
>

Okay, thanks for the clarification!
I'll simplify and include this suggestion in the next version.

Tomasz




[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux