From patchwork Thu Feb 20 08:53:11 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 24982 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f70.google.com (mail-oa0-f70.google.com [209.85.219.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 68CC22066E for ; Thu, 20 Feb 2014 08:59:47 +0000 (UTC) Received: by mail-oa0-f70.google.com with SMTP id m1sf6230222oag.9 for ; Thu, 20 Feb 2014 00:59:46 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=u8dowrGHXpZ4Py1TRvj13IvuDLYGTbJL0hORYGWecno=; b=hmmQ/qB5jtvrqVT4WTCcoLAb4oGbgCkvUQGRAg6mNXID2csE6uLCG3qoo2TzMbC+s6 QCQ8X33NNCaaNgdoALyyauP5ZkfD9wvGy0ZhEZNykZznsc+xWyQmokGu6D8tJB3XDUVt CYIQfRKcDaQ5Y9DcVbjusrbHaegbbxbp7A7oZKs3HfZH0MumpMeTjX2g7ftdIumYFSQG pqqaPtxnXNyLcMCrb2IV9WRW70DaWNYbpR0+MDGK9I+YYL0pbhrWyZooqerNzSqqnJyw EPDjvePW6zvSwZJnwEc1rDLUFuFmGWFZE7oqv4Nul4RiX6cyeDtNFT26VE6kNwr+3BsE gLew== X-Gm-Message-State: ALoCoQmSpP085gs30v/9qYqsaXaC2KZA6DAoYJthrPGprr7X/02nZCyhXOwykCp5h8l+QiJB4dX2 X-Received: by 10.182.65.168 with SMTP id y8mr271175obs.38.1392886786926; Thu, 20 Feb 2014 00:59:46 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.103.118 with SMTP id x109ls440466qge.43.gmail; Thu, 20 Feb 2014 00:59:46 -0800 (PST) X-Received: by 10.220.98.143 with SMTP id q15mr373731vcn.38.1392886786844; Thu, 20 Feb 2014 00:59:46 -0800 (PST) Received: from mail-vc0-f179.google.com (mail-vc0-f179.google.com [209.85.220.179]) by mx.google.com with ESMTPS id fb12si1210953veb.14.2014.02.20.00.59.46 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 20 Feb 2014 00:59:46 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.179 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.179; Received: by mail-vc0-f179.google.com with SMTP id lh14so1581514vcb.38 for ; Thu, 20 Feb 2014 00:59:46 -0800 (PST) X-Received: by 10.220.225.71 with SMTP id ir7mr355597vcb.50.1392886786764; Thu, 20 Feb 2014 00:59:46 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.174.196 with SMTP id u4csp40763vcz; Thu, 20 Feb 2014 00:59:46 -0800 (PST) X-Received: by 10.68.163.3 with SMTP id ye3mr770129pbb.78.1392886785956; Thu, 20 Feb 2014 00:59:45 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id tt8si2682990pbc.190.2014.02.20.00.59.44; Thu, 20 Feb 2014 00:59:44 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754851AbaBTI70 (ORCPT + 26 others); Thu, 20 Feb 2014 03:59:26 -0500 Received: from mail-pa0-f50.google.com ([209.85.220.50]:46970 "EHLO mail-pa0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754810AbaBTI7X (ORCPT ); Thu, 20 Feb 2014 03:59:23 -0500 Received: by mail-pa0-f50.google.com with SMTP id kp14so1624729pab.23 for ; Thu, 20 Feb 2014 00:59:23 -0800 (PST) X-Received: by 10.66.248.9 with SMTP id yi9mr634926pac.73.1392886762958; Thu, 20 Feb 2014 00:59:22 -0800 (PST) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id eo11sm21100112pac.0.2014.02.20.00.59.20 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 20 Feb 2014 00:59:22 -0800 (PST) From: Sachin Kamat To: linux-kernel@vger.kernel.org Cc: broonie@kernel.org, lgirdwood@gmail.com, sachin.kamat@linaro.org, Sangbeom Kim Subject: [PATCH 11/23] regulator: s5m8767: Remove redundant error message Date: Thu, 20 Feb 2014 14:23:11 +0530 Message-Id: <1392886403-10640-11-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1392886403-10640-1-git-send-email-sachin.kamat@linaro.org> References: <1392886403-10640-1-git-send-email-sachin.kamat@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: sachin.kamat@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.179 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , kzalloc prints its own OOM message upon failure. Signed-off-by: Sachin Kamat Cc: Sangbeom Kim --- drivers/regulator/s5m8767.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/drivers/regulator/s5m8767.c b/drivers/regulator/s5m8767.c index 4c356b872e6b..342a66ab654a 100644 --- a/drivers/regulator/s5m8767.c +++ b/drivers/regulator/s5m8767.c @@ -612,19 +612,13 @@ static int s5m8767_pmic_dt_parse_pdata(struct platform_device *pdev, rdata = devm_kzalloc(&pdev->dev, sizeof(*rdata) * pdata->num_regulators, GFP_KERNEL); - if (!rdata) { - dev_err(iodev->dev, - "could not allocate memory for regulator data\n"); + if (!rdata) return -ENOMEM; - } rmode = devm_kzalloc(&pdev->dev, sizeof(*rmode) * pdata->num_regulators, GFP_KERNEL); - if (!rmode) { - dev_err(iodev->dev, - "could not allocate memory for regulator mode\n"); + if (!rmode) return -ENOMEM; - } pdata->regulators = rdata; pdata->opmode = rmode;