[PATCH 1/4] gpiolib: introduce descriptor-based GPIO interface
Alexandre Courbot
acourbot at nvidia.com
Tue Jan 8 20:06:16 EST 2013
On Tue, Jan 8, 2013 at 9:59 PM, Arnd Bergmann <arnd at arndb.de> wrote:
> Please avoid the use of IS_ERR_OR_NULL(), especially on interfaces you
> introduce yourself. AFAICT, gpiod_get cannot return NULL, so you
> should not check for that.
Sure - you sound like IS_ERR_OR_NULL() is generally considered evil,
may I ask why this is the case?
>> + *dr = desc;
>> + devres_add(dev, dr);
>> +
>> + return 0;
>> +}
>
> I'm pretty sure you meant to write 'return desc;' here.
Absolutely, thanks.
Alex.
More information about the linux-arm-kernel
mailing list