From patchwork Thu Feb 20 08:53:19 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 24988 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-fa0-f72.google.com (mail-fa0-f72.google.com [209.85.161.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 066C92127C for ; Thu, 20 Feb 2014 09:00:51 +0000 (UTC) Received: by mail-fa0-f72.google.com with SMTP id s1sf2763743fas.7 for ; Thu, 20 Feb 2014 01:00:48 -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=As/YqRAnAEO2CdXcAR42A6T8UoXKqtKoIgwatMamyoU=; b=asnrIDeZcmMdIwdMPiQtTFolX0Gj+hi1d/6oKtLoKy699EDG3SaR32eS5m9u96HHwB i24AyJ/ho5EXb/CQjYDZDzpXiJ1fNmv3poE8i0iFujYB7oysnX5QWKEYFu0xRQRz8n1g XkUzd9Rgnx8zbVcCIGCd1CwBDvTdv+9LVm6QlR6cu/EYd8yHzsAzpQfbX2dxlpWOfkP1 IPIlDWUPGvoxO+qPrvnLrYuupcmztD7lXWhpG3dr/Chjy8qpaLh5neUjIg7wZLIMgw0h GYzlSBdqUFK2E8h1SmfDDW8UGAaUkmF7tfVMml3kM+6lre0THO4uKFxZCxRZ+VsorVqz wUGQ== X-Gm-Message-State: ALoCoQk5a8Hyeii4jzNczKNEue9P0TgI2gr44emD0wepp9CJYHuR0IF+5UQhOlDSOzBg9B4ybG28 X-Received: by 10.112.29.114 with SMTP id j18mr285890lbh.23.1392886848541; Thu, 20 Feb 2014 01:00:48 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.91.110 with SMTP id y101ls459281qgd.0.gmail; Thu, 20 Feb 2014 01:00:47 -0800 (PST) X-Received: by 10.53.10.137 with SMTP id ea9mr295135vdd.74.1392886847864; Thu, 20 Feb 2014 01:00:47 -0800 (PST) Received: from mail-vc0-f178.google.com (mail-vc0-f178.google.com [209.85.220.178]) by mx.google.com with ESMTPS id tr5si1206228vdc.26.2014.02.20.01.00.47 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 20 Feb 2014 01:00:47 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.178 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.178; Received: by mail-vc0-f178.google.com with SMTP id ik5so1582285vcb.9 for ; Thu, 20 Feb 2014 01:00:47 -0800 (PST) X-Received: by 10.52.185.196 with SMTP id fe4mr272157vdc.27.1392886847781; Thu, 20 Feb 2014 01:00:47 -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 u4csp40849vcz; Thu, 20 Feb 2014 01:00:47 -0800 (PST) X-Received: by 10.69.20.11 with SMTP id gy11mr787154pbd.64.1392886846994; Thu, 20 Feb 2014 01:00:46 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i9si2586063pbl.298.2014.02.20.01.00.45; Thu, 20 Feb 2014 01:00:46 -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 S1755068AbaBTI7t (ORCPT + 26 others); Thu, 20 Feb 2014 03:59:49 -0500 Received: from mail-pa0-f53.google.com ([209.85.220.53]:41747 "EHLO mail-pa0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755045AbaBTI7r (ORCPT ); Thu, 20 Feb 2014 03:59:47 -0500 Received: by mail-pa0-f53.google.com with SMTP id lj1so1613334pab.26 for ; Thu, 20 Feb 2014 00:59:45 -0800 (PST) X-Received: by 10.66.248.9 with SMTP id yi9mr636527pac.73.1392886785692; Thu, 20 Feb 2014 00:59:45 -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.43 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 20 Feb 2014 00:59:45 -0800 (PST) From: Sachin Kamat To: linux-kernel@vger.kernel.org Cc: broonie@kernel.org, lgirdwood@gmail.com, sachin.kamat@linaro.org, Laxman Dewangan Subject: [PATCH 19/23] regulator: tps80031: Remove redundant error message Date: Thu, 20 Feb 2014 14:23:19 +0530 Message-Id: <1392886403-10640-19-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.178 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: Laxman Dewangan --- drivers/regulator/tps80031-regulator.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/regulator/tps80031-regulator.c b/drivers/regulator/tps80031-regulator.c index 71f457a42623..ac88c988bb2e 100644 --- a/drivers/regulator/tps80031-regulator.c +++ b/drivers/regulator/tps80031-regulator.c @@ -693,10 +693,8 @@ static int tps80031_regulator_probe(struct platform_device *pdev) pmic = devm_kzalloc(&pdev->dev, TPS80031_REGULATOR_MAX * sizeof(*pmic), GFP_KERNEL); - if (!pmic) { - dev_err(&pdev->dev, "mem alloc for pmic failed\n"); + if (!pmic) return -ENOMEM; - } for (num = 0; num < TPS80031_REGULATOR_MAX; ++num) { tps_pdata = pdata->regulator_pdata[num];