Message ID | 008301cf01e6$9a679820$cf36c860$%han@samsung.com |
---|---|
State | Accepted |
Commit | 9e3677a8134cb49fcc3e64974500c22f0ad7bb55 |
Headers | show |
On 12/26/2013 11:00 AM, Jingoo Han wrote: > The site-specific OOM messages are unnecessary, because they > duplicate the MM subsystem generic OOM message. > > Signed-off-by: Jingoo Han <jg1.han@samsung.com> Acked-by: Josh Wu <josh.wu@atmel.com> Best Regards, Josh Wu > --- > drivers/mtd/nand/atmel_nand.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/drivers/mtd/nand/atmel_nand.c b/drivers/mtd/nand/atmel_nand.c > index 59f08c4..e633c44 100644 > --- a/drivers/mtd/nand/atmel_nand.c > +++ b/drivers/mtd/nand/atmel_nand.c > @@ -1961,10 +1961,8 @@ static int atmel_nand_probe(struct platform_device *pdev) > > /* Allocate memory for the device structure (and zero it) */ > host = devm_kzalloc(&pdev->dev, sizeof(*host), GFP_KERNEL); > - if (!host) { > - printk(KERN_ERR "atmel_nand: failed to allocate device structure.\n"); > + if (!host) > return -ENOMEM; > - } > > res = platform_driver_register(&atmel_nand_nfc_driver); > if (res)
diff --git a/drivers/mtd/nand/atmel_nand.c b/drivers/mtd/nand/atmel_nand.c index 59f08c4..e633c44 100644 --- a/drivers/mtd/nand/atmel_nand.c +++ b/drivers/mtd/nand/atmel_nand.c @@ -1961,10 +1961,8 @@ static int atmel_nand_probe(struct platform_device *pdev) /* Allocate memory for the device structure (and zero it) */ host = devm_kzalloc(&pdev->dev, sizeof(*host), GFP_KERNEL); - if (!host) { - printk(KERN_ERR "atmel_nand: failed to allocate device structure.\n"); + if (!host) return -ENOMEM; - } res = platform_driver_register(&atmel_nand_nfc_driver); if (res)
The site-specific OOM messages are unnecessary, because they duplicate the MM subsystem generic OOM message. Signed-off-by: Jingoo Han <jg1.han@samsung.com> --- drivers/mtd/nand/atmel_nand.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)