Re: [PATCH 2/5] regulator: core: have regulator_dev_lookup() return ERR_PTR-encoded errors

From: Mark Brown
Date: Sat Feb 04 2017 - 05:12:28 EST


On Fri, Feb 03, 2017 at 01:56:01PM -0800, Dmitry Torokhov wrote:

> - return NULL;
> + return r ? r : ERR_PTR(-ENODEV);
> }

Please write normal conditional statements to keep the code legible.

Attachment: signature.asc
Description: PGP signature