From: Reinhard Meyer Date: Thu, 14 Oct 2010 08:20:00 +0200 Subject: [U-Boot] RFC: introduce malloc_cleared() ? Message-ID: <4CB6A110.6080101@emk-elektronik.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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