From: Sachin Kamat Date: Thu, 20 Feb 2014 08:53:10 +0000 (+0530) Subject: regulator: rc5t583: Remove redundant error message X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=2ea2583f2f20ba9b68ee6537fcb7e2b829d6928d;p=linux-beck.git regulator: rc5t583: Remove redundant error message kzalloc prints its own OOM message upon failure. Signed-off-by: Sachin Kamat Signed-off-by: Mark Brown --- diff --git a/drivers/regulator/rc5t583-regulator.c b/drivers/regulator/rc5t583-regulator.c index 22d6fd1281b1..4c414ae109ae 100644 --- a/drivers/regulator/rc5t583-regulator.c +++ b/drivers/regulator/rc5t583-regulator.c @@ -134,10 +134,8 @@ static int rc5t583_regulator_probe(struct platform_device *pdev) regs = devm_kzalloc(&pdev->dev, RC5T583_REGULATOR_MAX * sizeof(struct rc5t583_regulator), GFP_KERNEL); - if (!regs) { - dev_err(&pdev->dev, "Memory allocation failed exiting..\n"); + if (!regs) return -ENOMEM; - } for (id = 0; id < RC5T583_REGULATOR_MAX; ++id) {