[U-Boot] RFC: introduce malloc_cleared() ?

Reinhard Meyer u-boot at emk-elektronik.de
Thu Oct 14 08:20:00 CEST 2010


Hello,

instead of adding or having the sequence of

malloc(), memset()

in all places where a definitely sane initialized structure
is required it would make more sense to introduce a single
function doing both. (The standard "calloc()" does not suit well
here.) Overall that should even slightly decrease code size.

Reinhard


More information about the U-Boot mailing list