On Fri, May 26, 2017 at 7:09 PM, Mika Westerberg <[email protected]> wrote:
> +static inline u8 dual_link_from_link(u8 link)
> +{
> + return link ? ((link - 1) ^ 0x01) + 1 : 0;
> +}
I have got better one (IIUC):
return (link + 1) ^ 0x01) - 1;
--
With Best Regards,
Andy Shevchenko

