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

Heinrich Schuchardt xypron.glpk at gmx.de
Sun Nov 12 20:05:42 UTC 2017


On 11/12/2017 09:02 PM, Jeroen Hofstee wrote:
> 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...

Yes the file is written quite undecently in many aspects.

Regards

Heirnich


More information about the U-Boot mailing list