lkml.org 
[lkml]   [2016]   [Mar]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] regulator: gpio: check return value of of_get_named_gpio
On Wed, Mar 09, 2016 at 05:50:42AM -0800, Mihai Mihalache wrote:

> config->enable_gpio = of_get_named_gpio(np, "enable-gpio", 0);
> + if(IS_ERR_VALUE(config->enable_gpio))
> + return ERR_PTR(config->enable_gpio);

Please follow the kernel coding style - if(.
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2016-03-10 04:41    [W:0.064 / U:0.504 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site