From: simran singhal
> Sent: 28 March 2017 14:33
> This patch replaces ternary operator with macro max as it shorter and
> thus increases code readability. Macro max return the maximum of the two
> compared values.
...
>       /* Convert error codes to nomatch */
> -     return (ret < 0 ? 0 : ret);
> +     return max(0, ret);

It might be shorter but it isn't more readable.

        David


Reply via email to