Re: [PATCH] net: dsa: lan9303: correctly check return value of devm_gpiod_get_optional

From: David Miller
Date: Tue Nov 14 2017 - 07:35:42 EST


From: Pan Bian <bianpan2016@xxxxxxx>
Date: Sun, 12 Nov 2017 23:38:09 +0800

> Function devm_gpiod_get_optional() returns an ERR_PTR on failure. Its
> return value should not be validated by a NULL check. Instead, use IS_ERR.
>
> Signed-off-by: Pan Bian <bianpan2016@xxxxxxx>

Applied.