lkml.org 
[lkml]   [2015]   [Mar]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 03/15] twl4030_charger: use devres for power_supply_register and kzalloc.
Hi,

On Tue, Feb 24, 2015 at 03:33:50PM +1100, NeilBrown wrote:
> [...]
> @@ -667,13 +667,6 @@ static int __init twl4030_bci_probe(struct platform_device *pdev)
> return 0;
>
> fail:
> - power_supply_unregister(&bci->usb);
> -fail_register_usb:
> - power_supply_unregister(&bci->ac);
> -fail_register_ac:
> -fail_no_battery:
> - kfree(bci);
> -
> return ret;
> }

Please replace "goto fail" with "return ret", goto is no
longer needed.

-- Sebastian
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2015-03-07 21:41    [W:0.314 / U:0.064 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site