Message ID | 1392886403-10640-23-git-send-email-sachin.kamat@linaro.org |
---|---|
State | Accepted |
Headers | show
Return-Path: <patchwork-forward+bncBDM5LUP2XEPRBQ4IS6MAKGQEQ2WPA4I@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pa0-f70.google.com (mail-pa0-f70.google.com [209.85.220.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 76BA22066E for <linaro@patches.linaro.org>; Thu, 20 Feb 2014 09:00:52 +0000 (UTC) Received: by mail-pa0-f70.google.com with SMTP id kq14sf4080433pab.1 for <linaro@patches.linaro.org>; Thu, 20 Feb 2014 01:00:51 -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=GabvdIozyGBVeeF9p8xu5q7IjfFQDqdmTgVz6seesNE=; b=dXf+9RgP5J7RS9MtIA9wfyMtdw5+Sotfa+sZl4MBSMxaxZiplCsBy1oooFg2F2IrQ0 PM/CUpfWPyn0pS7bffoLWMeLteLHW+au8nDXlwYkQXUzH3H5+F/DqQm2eUNtdpEPt2QE I+m3C+AeAra1CugnpJS5dDd9zLDftoBuKKvRtGI0qJGxK3r3m4JDia1zSmwHCKIPELzF aPjjrYtHFkD0lgEy0Fa9aAkA4TH8mLSIfqhbVxXW6u9VuHhPS4jq1S+TYiTJVCdBazQm 9P850bezmnzcwGB2idKC33o3v4r1bm5dZxZqTQdtP/XHidSUPhBn7e591wNKNwjaSsFI WC1Q== X-Gm-Message-State: ALoCoQmBwKsdKMkeVgI3c1jCHD6Z3JmmLfmbWGjIV3VZ85qMqEHWspAeIVruPlgZhzkkcuRUJeO4 X-Received: by 10.66.66.109 with SMTP id e13mr260716pat.1.1392886851606; Thu, 20 Feb 2014 01:00:51 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.92.65 with SMTP id a59ls417392qge.72.gmail; Thu, 20 Feb 2014 01:00:51 -0800 (PST) X-Received: by 10.52.27.9 with SMTP id p9mr318544vdg.28.1392886851439; Thu, 20 Feb 2014 01:00:51 -0800 (PST) Received: from mail-vc0-f173.google.com (mail-vc0-f173.google.com [209.85.220.173]) by mx.google.com with ESMTPS id eo4si1202034vdb.56.2014.02.20.01.00.51 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 20 Feb 2014 01:00:51 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.173 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.173; Received: by mail-vc0-f173.google.com with SMTP id ld13so1560471vcb.4 for <patchwork-forward@linaro.org>; Thu, 20 Feb 2014 01:00:51 -0800 (PST) X-Received: by 10.220.225.71 with SMTP id ir7mr358119vcb.50.1392886851374; Thu, 20 Feb 2014 01:00:51 -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 u4csp40856vcz; Thu, 20 Feb 2014 01:00:51 -0800 (PST) X-Received: by 10.66.148.230 with SMTP id tv6mr583674pab.155.1392886850611; Thu, 20 Feb 2014 01:00:50 -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.48; Thu, 20 Feb 2014 01:00:48 -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 S1755182AbaBTJAD (ORCPT <rfc822;linus.walleij@linaro.org> + 26 others); Thu, 20 Feb 2014 04:00:03 -0500 Received: from mail-pd0-f180.google.com ([209.85.192.180]:42917 "EHLO mail-pd0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755162AbaBTI76 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 20 Feb 2014 03:59:58 -0500 Received: by mail-pd0-f180.google.com with SMTP id x10so1549817pdj.39 for <linux-kernel@vger.kernel.org>; Thu, 20 Feb 2014 00:59:58 -0800 (PST) X-Received: by 10.68.134.8 with SMTP id pg8mr781973pbb.84.1392886798225; Thu, 20 Feb 2014 00:59:58 -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.55 for <multiple recipients> (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 20 Feb 2014 00:59:57 -0800 (PST) From: Sachin Kamat <sachin.kamat@linaro.org> To: linux-kernel@vger.kernel.org Cc: broonie@kernel.org, lgirdwood@gmail.com, sachin.kamat@linaro.org Subject: [PATCH 23/23] regulator: wm8994: Remove redundant error message Date: Thu, 20 Feb 2014 14:23:23 +0530 Message-Id: <1392886403-10640-23-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: <patchwork-forward.linaro.org> 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.173 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: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Unsubscribe: <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe>, <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com> |
diff --git a/drivers/regulator/wm8994-regulator.c b/drivers/regulator/wm8994-regulator.c index 71c5911f2e71..c24346db8a71 100644 --- a/drivers/regulator/wm8994-regulator.c +++ b/drivers/regulator/wm8994-regulator.c @@ -134,10 +134,8 @@ static int wm8994_ldo_probe(struct platform_device *pdev) dev_dbg(&pdev->dev, "Probing LDO%d\n", id + 1); ldo = devm_kzalloc(&pdev->dev, sizeof(struct wm8994_ldo), GFP_KERNEL); - if (ldo == NULL) { - dev_err(&pdev->dev, "Unable to allocate private data\n"); + if (!ldo) return -ENOMEM; - } ldo->wm8994 = wm8994; ldo->supply = wm8994_ldo_consumer[id];
kzalloc prints its own OOM message upon failure. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> --- drivers/regulator/wm8994-regulator.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)