lkml.org 
[lkml]   [2005]   [Oct]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH] [HWMON] kmalloc + memset -> kzalloc conversion
    On Sun, Oct 02, 2005 at 07:45:36AM +1000, Grant Coady wrote:
    > On Sat, 1 Oct 2005 22:46:04 +0200, Jean Delvare <khali@linux-fr.org> wrote:
    > >> - if (!(data = kmalloc(sizeof(struct adm1021_data), GFP_KERNEL))) {
    > >> + if (!(data = kzalloc(sizeof(struct adm1021_data), GFP_KERNEL))) {
    >
    > if (!(data = kzalloc(sizeof(*data), GFP_KERNEL))) {
    >
    > instead?

    One thing at a time. And leave sizeof(*p) vs sizeof(struct foo) to
    maintainer, OK?

    -
    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 00:31    [W:0.021 / U:177.860 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site