diff options
Diffstat (limited to 'drivers/mtd/onenand/samsung.c')
-rw-r--r-- | drivers/mtd/onenand/samsung.c | 4 |
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) | |||
872 | 872 | ||
873 | size = sizeof(struct mtd_info) + sizeof(struct onenand_chip); | 873 | size = sizeof(struct mtd_info) + sizeof(struct onenand_chip); |
874 | mtd = kzalloc(size, GFP_KERNEL); | 874 | mtd = kzalloc(size, GFP_KERNEL); |
875 | if (!mtd) { | 875 | if (!mtd) |
876 | dev_err(&pdev->dev, "failed to allocate memory\n"); | ||
877 | return -ENOMEM; | 876 | return -ENOMEM; |
878 | } | ||
879 | 877 | ||
880 | onenand = kzalloc(sizeof(struct s3c_onenand), GFP_KERNEL); | 878 | onenand = kzalloc(sizeof(struct s3c_onenand), GFP_KERNEL); |
881 | if (!onenand) { | 879 | if (!onenand) { |