From patchwork Tue Feb 18 10:41: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: 24830 Return-Path: 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 F0C0E203C5 for ; Tue, 18 Feb 2014 10:48:07 +0000 (UTC) Received: by mail-pa0-f70.google.com with SMTP id kq14sf40511391pab.5 for ; Tue, 18 Feb 2014 02:48:07 -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=enxFsPm/WcEK2fg6AO2N2mln9iBYYZSnErEvwCqoLsA=; b=ToZ+qpN973w0Q9lc1zPTs+WCglsK6cWJJwfCHH/V5wKb1g63926xWnDYLxAnZIufzw yeAqqq2NquUerCUkHUOT8HcILoeVat+fE54wfi8Be5nZbD/D4eW4yOHC5affEnyenqtk XqM3XxlD3eIvNXD/lY4dNh5DU/mwe9w38OMBB1P/Q7ttf3890ChI0QuiWz6cYeUjZyHO gscHgBgu5l8+SAwy+L4Lm4S32w7bySDKygV8wUO/E/ogp88QBr34t3PzhkPej3u/S0Rv OvDM9CVS3bILkeCRodsPb1FhQJ/eygPunWuckslpaqIa0IvXyBYfPpBe1rJvuzt/ThYO CHYA== X-Gm-Message-State: ALoCoQlE4cZTHP6XfZnPQhP6DqtYmLIMfqeZuwTDPKr9moJPsj4OM0yfCgM3LfRgk2jhEg5N/M1X X-Received: by 10.66.26.132 with SMTP id l4mr12429739pag.2.1392720487198; Tue, 18 Feb 2014 02:48:07 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.84.103 with SMTP id k94ls1230743qgd.39.gmail; Tue, 18 Feb 2014 02:48:07 -0800 (PST) X-Received: by 10.221.34.211 with SMTP id st19mr20690007vcb.5.1392720486963; Tue, 18 Feb 2014 02:48:06 -0800 (PST) Received: from mail-vc0-f169.google.com (mail-vc0-f169.google.com [209.85.220.169]) by mx.google.com with ESMTPS id kn3si5372439veb.130.2014.02.18.02.48.06 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 18 Feb 2014 02:48:06 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.169 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.169; Received: by mail-vc0-f169.google.com with SMTP id hq11so13195075vcb.0 for ; Tue, 18 Feb 2014 02:48:06 -0800 (PST) X-Received: by 10.220.53.66 with SMTP id l2mr5137434vcg.33.1392720486873; Tue, 18 Feb 2014 02:48:06 -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 u4csp207248vcz; Tue, 18 Feb 2014 02:48:06 -0800 (PST) X-Received: by 10.66.25.101 with SMTP id b5mr32456020pag.101.1392720486085; Tue, 18 Feb 2014 02:48:06 -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.05; Tue, 18 Feb 2014 02:48:05 -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 S1755241AbaBRKr7 (ORCPT + 27 others); Tue, 18 Feb 2014 05:47:59 -0500 Received: from mail-pb0-f43.google.com ([209.85.160.43]:46603 "EHLO mail-pb0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755189AbaBRKr2 (ORCPT ); Tue, 18 Feb 2014 05:47:28 -0500 Received: by mail-pb0-f43.google.com with SMTP id md12so16594214pbc.2 for ; Tue, 18 Feb 2014 02:47:28 -0800 (PST) X-Received: by 10.68.202.8 with SMTP id ke8mr32383810pbc.86.1392720448074; Tue, 18 Feb 2014 02:47:28 -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.24 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 18 Feb 2014 02:47:26 -0800 (PST) From: Sachin Kamat To: linux-kernel@vger.kernel.org Cc: broonie@kernel.org, lgirdwood@gmail.com, sachin.kamat@linaro.org Subject: [PATCH 14/15] regulator: arizona-micsupp: Remove redundant error message Date: Tue, 18 Feb 2014 16:11:10 +0530 Message-Id: <1392720071-13503-14-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.220.169 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-micsupp.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/regulator/arizona-micsupp.c b/drivers/regulator/arizona-micsupp.c index 034ece707083..6fdd9bf6927f 100644 --- a/drivers/regulator/arizona-micsupp.c +++ b/drivers/regulator/arizona-micsupp.c @@ -204,10 +204,8 @@ static int arizona_micsupp_probe(struct platform_device *pdev) int ret; micsupp = devm_kzalloc(&pdev->dev, sizeof(*micsupp), GFP_KERNEL); - if (micsupp == NULL) { - dev_err(&pdev->dev, "Unable to allocate private data\n"); + if (!micsupp) return -ENOMEM; - } micsupp->arizona = arizona; INIT_WORK(&micsupp->check_cp_work, arizona_micsupp_check_cp);