Re: [PATCH] PM / OPP: discard duplicate OPP additions

From: Chander Kashyap
Date: Thu May 15 2014 - 04:47:06 EST


On 15 May 2014 13:57, Viresh Kumar <viresh.kumar@xxxxxxxxxx> wrote:
> On 15 May 2014 13:55, Chander Kashyap <chander.kashyap@xxxxxxxxxx> wrote:
>> Then in that case the caller must take care for two type of errors:
>> -EEXIST and -ENOMEM
>
> Actually, success: (0 or -EEXIST), failure: Anything else.

Yes exactly. All users of this API need to be modified to handle
EEXIST as success.

To avoid this returning 0 was suggested,

--
with warm regards,
Chander Kashyap
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/