From: Guillaume LECERF Date: Sat, 24 Apr 2010 15:58:32 +0000 (+0200) Subject: mtd: cfi_util: do not printk if no extended query table X-Git-Tag: v2.6.35-rc1~465^2~32 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=087444da61ed972b3c2bfbf7dcf317cb4475f143;p=karo-tx-linux.git mtd: cfi_util: do not printk if no extended query table Signed-off-by: Guillaume LECERF Reviewed-by: Wolfram Sang Signed-off-by: David Woodhouse --- diff --git a/drivers/mtd/chips/cfi_util.c b/drivers/mtd/chips/cfi_util.c index ca584d0380b4..d7c2c672757e 100644 --- a/drivers/mtd/chips/cfi_util.c +++ b/drivers/mtd/chips/cfi_util.c @@ -104,10 +104,11 @@ __xipram cfi_read_pri(struct map_info *map, __u16 adr, __u16 size, const char* n int i; struct cfi_extquery *extp = NULL; - printk(" %s Extended Query Table at 0x%4.4X\n", name, adr); if (!adr) goto out; + printk(KERN_INFO "%s Extended Query Table at 0x%4.4X\n", name, adr); + extp = kmalloc(size, GFP_KERNEL); if (!extp) { printk(KERN_ERR "Failed to allocate memory\n");