[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20120806215727.60177hgs4k81txvw@webmail.lip6.fr>
Date: Mon, 06 Aug 2012 21:57:27 +0200
From: Julia.Lawall@...6.fr
To: Dan Carpenter <dan.carpenter@...cle.com>
Cc: Julia Lawall <Julia.Lawall@...6.fr>,
Samuel Ortiz <sameo@...ux.intel.com>,
kernel-janitors@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 2/6] drivers/mfd: drop frees of devm allocated data
Quoting Dan Carpenter <dan.carpenter@...cle.com>:
> On Sat, Aug 04, 2012 at 06:50:45PM +0200, Julia Lawall wrote:
>> diff --git a/drivers/mfd/88pm80x.c b/drivers/mfd/88pm80x.c
>> index cd0bf52..2bd090e 100644
>> --- a/drivers/mfd/88pm80x.c
>> +++ b/drivers/mfd/88pm80x.c
>> @@ -45,17 +45,14 @@ int __devinit pm80x_init(struct i2c_client *client,
>>
>> map = devm_regmap_init_i2c(client, &pm80x_regmap_config);
>> if (IS_ERR(map)) {
>> - ret = PTR_ERR(map);
>> dev_err(&client->dev, "Failed to allocate register map: %d\n",
>> ret);
> ^^^
> The ret = PTR_ERR(map); is still needed for the error message.
Good point. Thanks. I will fix it as soon as possible, at the end of
the week.
julia
>> - goto err_regmap_init;
>> + return PTR_ERR(map);
>> }
>
> regards,
> dan carpenter
>
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists