[U-Boot] [PATCH v2 1/5] sf: ops: Squash the malloc+memset combo

Fabio Estevam festevam at gmail.com
Mon Jan 20 15:47:08 CET 2014


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.

Regards,

Fabio Estevam


More information about the U-Boot mailing list