diff options
author | Brian Norris <computersforpeace@gmail.com> | 2011-06-08 01:01:54 +0200 |
---|---|---|
committer | Artem Bityutskiy <artem.bityutskiy@intel.com> | 2011-09-11 14:02:05 +0200 |
commit | 0870066d7e6c85bbe37741137e4c4731501a98e0 (patch) | |
tree | 20b0c0e2417b222d18d0027e067dc55489db0940 /drivers/mtd/cmdlinepart.c | |
parent | mtd: ndfc: fix a memory leak in ndfc_remove (diff) | |
download | linux-0870066d7e6c85bbe37741137e4c4731501a98e0.tar.xz linux-0870066d7e6c85bbe37741137e4c4731501a98e0.zip |
mtd: remove printk's for [kv][mz]alloc failures
When a memory allocation fails, the kernel will print out a backtrace
automatically. These print statements are unnecessary.
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'drivers/mtd/cmdlinepart.c')
-rw-r--r-- | drivers/mtd/cmdlinepart.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/mtd/cmdlinepart.c b/drivers/mtd/cmdlinepart.c index e790f38893b0..be0c121f2f1b 100644 --- a/drivers/mtd/cmdlinepart.c +++ b/drivers/mtd/cmdlinepart.c @@ -188,10 +188,7 @@ static struct mtd_partition * newpart(char *s, extra_mem_size; parts = kzalloc(alloc_size, GFP_KERNEL); if (!parts) - { - printk(KERN_ERR ERRP "out of memory\n"); return NULL; - } extra_mem = (unsigned char *)(parts + *num_parts); } /* enter this partition (offset will be calculated later if it is zero at this point) */ |