[U-Boot] [PATCH v2 1/1] malloc: don't compare pointers to 0

Jeroen Hofstee dasuboot at myspectrum.nl
Sun Nov 12 20:02:18 UTC 2017


Hello Heinrich,

On 11/10/2017 09:46 PM, Heinrich Schuchardt wrote:
> 0 is not a pointer. So do not compare pointers to 0.
>
> Do not return 0 from functions with a pointer return
> type.
>
> Problem identified with Coccinelle.

Perhaps you can elaborate on what problem you are solving? As far as I
know it is only a style issue...

Regards,
Jeroen


More information about the U-Boot mailing list