Re: [PATCH 12/44 take 2] [UBI] allocation unit implementation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2/17/07, Artem Bityutskiy <[email protected]> wrote:
+void *ubi_kzalloc(size_t size)
+{
+       void *ret;
+
+       ret = kzalloc(size, GFP_KERNEL);
+       if (unlikely(!ret)) {
+               ubi_err("cannot allocate %zd bytes", size);
+               dump_stack();
+               return NULL;
+       }
+
+       return ret;
+}

[snip, snip]

NAK. Please drop all of these utterly pointless kmalloc() and
kmem_cache_alloc() wrappers.

                                            Pekka
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux