> -     return (ret == 0) ? ret : -ETIMEDOUT ;
> +     if (ret == 0)
> +             return ret;
> +     else
> +             return -ETIMEDOUT;

I actually like more the original version.

If you write it like this:

        return !ret ? ret : -ETIMEDOUT;

checkpatch shouldn't complain.

Andi
_______________________________________________
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Reply via email to