From patchwork Thu Feb 20 08:53:10 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 24995 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f72.google.com (mail-oa0-f72.google.com [209.85.219.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id EA3FB2066E for ; Thu, 20 Feb 2014 09:06:34 +0000 (UTC) Received: by mail-oa0-f72.google.com with SMTP id i4sf5046927oah.3 for ; Thu, 20 Feb 2014 01:06:34 -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=JPjjuHxogceqJBwnc3LYB9qrxmYLDgQEYJBI1m7qeoc=; b=mRryZWH9OxzydsElKQLRfiu+J7VCbyftW17XBeWiIioN2X2Z/FxW/P4Oxo3MIYxQLg Q2C7OSdFAX1xuXfahg7kzQEUlucjoiPZOjMNuaHzKh4lstXuM1g+gYcRxBtd3D51O/hD Gy7qFdjtgBjDMQ2hWpIdn5E+eok587VhhbVrXf/SnSmtM7PYsS4zLBlV4kjRdlBVKoXG kBinvuWeR+pDg4REgnr1sCZ0ukBYgXdAvqc11xA2ILSK4dgNlfRqkEkKmGLjuz5KkfAt k3swIEiClYo7AKNXHfvaRrCrnTsyhf9QM4IbZ74r8KieeHyjVw5rkgo2pnXQe5qB5dUH TimA== X-Gm-Message-State: ALoCoQls5N9lu/mKCy1SA/pUVrqKfs2P89Ho0/b90chQw801UNciHrKZUTHClLuyxCtz1TLHbFhP X-Received: by 10.42.78.197 with SMTP id o5mr254459ick.9.1392887194462; Thu, 20 Feb 2014 01:06:34 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.23.80 with SMTP id 74ls484446qgo.61.gmail; Thu, 20 Feb 2014 01:06:34 -0800 (PST) X-Received: by 10.220.89.4 with SMTP id c4mr322968vcm.53.1392887194287; Thu, 20 Feb 2014 01:06:34 -0800 (PST) Received: from mail-ve0-f180.google.com (mail-ve0-f180.google.com [209.85.128.180]) by mx.google.com with ESMTPS id si7si1209874vdc.37.2014.02.20.01.06.34 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 20 Feb 2014 01:06:34 -0800 (PST) Received-SPF: neutral (google.com: 209.85.128.180 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.180; Received: by mail-ve0-f180.google.com with SMTP id cz12so334216veb.11 for ; Thu, 20 Feb 2014 01:06:34 -0800 (PST) X-Received: by 10.52.61.168 with SMTP id q8mr322640vdr.40.1392887194204; Thu, 20 Feb 2014 01:06:34 -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 u4csp41230vcz; Thu, 20 Feb 2014 01:06:33 -0800 (PST) X-Received: by 10.66.155.7 with SMTP id vs7mr830937pab.42.1392887193275; Thu, 20 Feb 2014 01:06:33 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i9si2606059pbl.178.2014.02.20.01.06.32; Thu, 20 Feb 2014 01:06:32 -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 S1754119AbaBTI7X (ORCPT + 26 others); Thu, 20 Feb 2014 03:59:23 -0500 Received: from mail-pb0-f46.google.com ([209.85.160.46]:60811 "EHLO mail-pb0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754775AbaBTI7U (ORCPT ); Thu, 20 Feb 2014 03:59:20 -0500 Received: by mail-pb0-f46.google.com with SMTP id um1so1637907pbc.33 for ; Thu, 20 Feb 2014 00:59:20 -0800 (PST) X-Received: by 10.67.3.40 with SMTP id bt8mr763467pad.78.1392886760141; Thu, 20 Feb 2014 00:59:20 -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.17 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 20 Feb 2014 00:59:19 -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 10/23] regulator: rc5t583: Remove redundant error message Date: Thu, 20 Feb 2014 14:23:10 +0530 Message-Id: <1392886403-10640-10-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.128.180 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/rc5t583-regulator.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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) {