lkml.org 
[lkml]   [2022]   [Aug]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] regulator: core: Clean up on enable failure
On Fri, Aug 19, 2022 at 02:43:36PM -0500, Andrew Halaney wrote:

> - if (regulator->uA_load && regulator->enable_count == 1)
> - return drms_uA_update(rdev);
> + if (regulator->uA_load && regulator->enable_count == 1) {
> + ret = drms_uA_update(rdev);

I am vaugely surprised and a bit concerned that drms_uA_update() can
fail...
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2022-08-20 00:49    [W:1.081 / U:0.684 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site