[U-Boot] [PATCH v2 1/5] sf: ops: Squash the malloc+memset combo
Jagan Teki
jagannadh.teki at gmail.com
Mon Jan 20 16:03:11 CET 2014
On Mon, Jan 20, 2014 at 8:17 PM, Fabio Estevam <festevam at gmail.com> wrote:
> On Mon, Jan 20, 2014 at 12:40 PM, Jagan Teki <jagannadh.teki at gmail.com> wrote:
>>> Shouldn't you return -ENOMEM instead?
>>
>> Yes - we can but anyway ret is -1 by default.
>> and sf code doesn't use -ve macros' as of now.
>
> -1 is not an propriate return error value in this case.
Yes it should be -11 - then we need to use -ENOMEM
--
Thanks,
Jagan.
More information about the U-Boot
mailing list