lkml.org 
[lkml]   [2017]   [Nov]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] net: dsa: lan9303: correctly check return value of devm_gpiod_get_optional
From
From: Pan Bian <bianpan2016@163.com>
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@163.com>

Applied.

\
 
 \ /
  Last update: 2017-11-14 13:36    [W:0.042 / U:7.544 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site