diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-12-26 04:04:58 +0100 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2014-01-03 20:22:29 +0100 |
commit | 9fd9e4cd1aa8c286e477ad13724a4eed9059fb7a (patch) | |
tree | 4d9baf0913cae867fe98115161995a37f525c6c1 /drivers/mtd/nand/cafe_nand.c | |
parent | mtd: bf5xx_nand: Remove unnecessary OOM messages (diff) | |
download | linux-9fd9e4cd1aa8c286e477ad13724a4eed9059fb7a.tar.xz linux-9fd9e4cd1aa8c286e477ad13724a4eed9059fb7a.zip |
mtd: cafe_nand: Remove unnecessary OOM messages
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>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'drivers/mtd/nand/cafe_nand.c')
-rw-r--r-- | drivers/mtd/nand/cafe_nand.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/mtd/nand/cafe_nand.c b/drivers/mtd/nand/cafe_nand.c index c34985a55101..f2f64addb5e8 100644 --- a/drivers/mtd/nand/cafe_nand.c +++ b/drivers/mtd/nand/cafe_nand.c @@ -640,10 +640,8 @@ static int cafe_nand_probe(struct pci_dev *pdev, pci_set_master(pdev); mtd = kzalloc(sizeof(*mtd) + sizeof(struct cafe_priv), GFP_KERNEL); - if (!mtd) { - dev_warn(&pdev->dev, "failed to alloc mtd_info\n"); + if (!mtd) return -ENOMEM; - } cafe = (void *)(&mtd[1]); mtd->dev.parent = &pdev->dev; |