lkml.org 
[lkml]   [2005]   [Oct]   [2]   [last100]   RSS Feed
Views: [more markup]   [less markup]   [headers]   [forward]  
 
Messages in this thread
/
DateSun, 2 Oct 2005 14:07:48 +0200
FromJörn Engel <>
SubjectRe: [PATCH] [MTD] kmalloc + memzero -> kzalloc conversion
On Sat, 1 October 2005 12:04:59 +0400, Artem B. Bityutskiy wrote:
> Deepak Saxena wrote:
> >I see it more as an API usage cleanup then a "fix" of any sort. 
> >
> Well, actually it may be helpful in only future, for example, if it is 
> known that the allocated memory is zero-filled already, memzero() may be 
> avoided at all.

Even today, kzalloc() takes less code than kmalloc() + memset().
Shrinks your binary size by a tiny amount.

Jörn

-- 
Mundie uses a textbook tactic of manipulation: start with some
reasonable talk, and lead the audience to an unreasonable conclusion.
-- Bruce Perens
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-10-02 10:10    [W:0.162 / U:0.170 seconds]
©2003-2008 Jasper Spaans