summaryrefslogtreecommitdiff
path: root/drivers/mtd/onenand/samsung.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2014-02-06 10:15:38 +0400
committerBrian Norris <computersforpeace@gmail.com>2014-03-11 09:42:24 +0400
commite4eec195f3e8106362da72c9d94dd6fcf598ddb7 (patch)
tree1a9392f67e059917c428effeb2f9a425353f7b2a /drivers/mtd/onenand/samsung.c
parent54f5a57e266318d72f84fda95805099986a7e201 (diff)
downloadlinux-e4eec195f3e8106362da72c9d94dd6fcf598ddb7.tar.xz
mtd: onenand: 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/onenand/samsung.c')
-rw-r--r--drivers/mtd/onenand/samsung.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/mtd/onenand/samsung.c b/drivers/mtd/onenand/samsung.c
index df7400dd4df8..b1a792fd1c23 100644
--- a/drivers/mtd/onenand/samsung.c
+++ b/drivers/mtd/onenand/samsung.c
@@ -872,10 +872,8 @@ static int s3c_onenand_probe(struct platform_device *pdev)
size = sizeof(struct mtd_info) + sizeof(struct onenand_chip);
mtd = kzalloc(size, GFP_KERNEL);
- if (!mtd) {
- dev_err(&pdev->dev, "failed to allocate memory\n");
+ if (!mtd)
return -ENOMEM;
- }
onenand = kzalloc(sizeof(struct s3c_onenand), GFP_KERNEL);
if (!onenand) {