Messages in this thread | | | Date | Thu, 15 May 2014 14:16:56 +0530 | Subject | Re: [PATCH] PM / OPP: discard duplicate OPP additions | From | Chander Kashyap <> |
| |
On 15 May 2014 13:57, Viresh Kumar <viresh.kumar@linaro.org> wrote: > On 15 May 2014 13:55, Chander Kashyap <chander.kashyap@linaro.org> 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
| |