lkml.org 
[lkml]   [2013]   [Sep]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 7/7] regulator: ti-abb: Use devm_regulator_register
On Wed, Sep 04, 2013 at 08:27:56AM -0500, Nishanth Menon wrote:
> On 09/04/2013 01:31 AM, Sachin Kamat wrote:

> > abb = devm_kzalloc(dev, sizeof(struct ti_abb), GFP_KERNEL);
> > - if (!abb) {
> > - dev_err(dev, "%s: Unable to allocate ABB struct\n", __func__);
> > - ret = -ENOMEM;
> > - goto err;
> > - }
> > + if (!abb)
> > + return -ENOMEM;

> here.

kzalloc() complains loudly when it fails, there's been a general thing
for removing the per-device logs as redundant.
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2013-09-04 17:21    [W:0.055 / U:0.300 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site