From patchwork Tue Feb 18 10:41:09 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 24828 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ie0-f198.google.com (mail-ie0-f198.google.com [209.85.223.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id BE0A0203C5 for ; Tue, 18 Feb 2014 10:48:05 +0000 (UTC) Received: by mail-ie0-f198.google.com with SMTP id at1sf28901400iec.1 for ; Tue, 18 Feb 2014 02:48:04 -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=hej5bySIgsTEGmkwJTXujI2MAyQ03o/94yczixku2ys=; b=g4JhjsMz7E1rNB90PC5pLv/KZWeB7tmyJjHNbCzmoMum4EVPCS4ZPZWKh8bu9MKKtV ZiXQzBvICtiMfDNNTEqRQ9qtJV5211F7UHzSkddm5U83IPZvEZTJEL1GXQtUORW4K6N/ K75gfL87WQFCQ5sIHPNL2GpTY/ufl/SznYV0mg3zE3dzOdhRwU2BpY+MAJZRRfkuqaua nyo+zAeheJd0GOMB187QKNggoRKWtWOGWPe+4iruSG5yre/BlQ1f4McfvUxZJ3HizBtQ nVm3HQO4qC5bhKtvRhJ8jny9q8PuXxJGmm+TGF+ePDaO6jYIu7dR9Rf5yat9HVSVTZQK LhIQ== X-Gm-Message-State: ALoCoQmM9Kp+yc5Dd6Z+tqLW4s0BBkIqO3rZdxJhu8GxL9Odkqb71zf/+x5a7JlV9tN4CoxiqK5O X-Received: by 10.42.194.5 with SMTP id dw5mr11011801icb.5.1392720484920; Tue, 18 Feb 2014 02:48:04 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.25.33 with SMTP id 30ls1260896qgs.22.gmail; Tue, 18 Feb 2014 02:48:04 -0800 (PST) X-Received: by 10.221.29.137 with SMTP id ry9mr20714529vcb.6.1392720484790; Tue, 18 Feb 2014 02:48:04 -0800 (PST) Received: from mail-ve0-f177.google.com (mail-ve0-f177.google.com [209.85.128.177]) by mx.google.com with ESMTPS id j20si5389912vcx.19.2014.02.18.02.48.04 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 18 Feb 2014 02:48:04 -0800 (PST) Received-SPF: neutral (google.com: 209.85.128.177 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.177; Received: by mail-ve0-f177.google.com with SMTP id jz11so12917215veb.8 for ; Tue, 18 Feb 2014 02:48:04 -0800 (PST) X-Received: by 10.220.247.68 with SMTP id mb4mr4866312vcb.37.1392720484656; Tue, 18 Feb 2014 02:48:04 -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 u4csp207243vcz; Tue, 18 Feb 2014 02:48:04 -0800 (PST) X-Received: by 10.66.249.202 with SMTP id yw10mr31499351pac.111.1392720483839; Tue, 18 Feb 2014 02:48:03 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l8si17842790paa.344.2014.02.18.02.48.03; Tue, 18 Feb 2014 02:48:03 -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 S1755208AbaBRKra (ORCPT + 27 others); Tue, 18 Feb 2014 05:47:30 -0500 Received: from mail-pb0-f47.google.com ([209.85.160.47]:56501 "EHLO mail-pb0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755175AbaBRKrZ (ORCPT ); Tue, 18 Feb 2014 05:47:25 -0500 Received: by mail-pb0-f47.google.com with SMTP id rp16so16473088pbb.6 for ; Tue, 18 Feb 2014 02:47:24 -0800 (PST) X-Received: by 10.68.237.133 with SMTP id vc5mr32298052pbc.92.1392720444460; Tue, 18 Feb 2014 02:47:24 -0800 (PST) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id gj9sm5442084pbc.7.2014.02.18.02.47.21 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 18 Feb 2014 02:47:23 -0800 (PST) From: Sachin Kamat To: linux-kernel@vger.kernel.org Cc: broonie@kernel.org, lgirdwood@gmail.com, sachin.kamat@linaro.org Subject: [PATCH 13/15] regulator: arizona-ldo1: Remove redundant error message Date: Tue, 18 Feb 2014 16:11:09 +0530 Message-Id: <1392720071-13503-13-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1392720071-13503-1-git-send-email-sachin.kamat@linaro.org> References: <1392720071-13503-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.177 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 --- drivers/regulator/arizona-ldo1.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/regulator/arizona-ldo1.c b/drivers/regulator/arizona-ldo1.c index 4f6c2055f6b2..d8e7db696d5a 100644 --- a/drivers/regulator/arizona-ldo1.c +++ b/drivers/regulator/arizona-ldo1.c @@ -189,10 +189,8 @@ static int arizona_ldo1_probe(struct platform_device *pdev) int ret; ldo1 = devm_kzalloc(&pdev->dev, sizeof(*ldo1), GFP_KERNEL); - if (ldo1 == NULL) { - dev_err(&pdev->dev, "Unable to allocate private data\n"); + if (!ldo1) return -ENOMEM; - } ldo1->arizona = arizona;