Message ID | 1392720071-13503-15-git-send-email-sachin.kamat@linaro.org |
---|---|
State | Accepted |
Headers | show
Return-Path: <patchwork-forward+bncBDM5LUP2XEPRBZPURSMAKGQEZHTTWEA@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pb0-f69.google.com (mail-pb0-f69.google.com [209.85.160.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 93869203C5 for <linaro@patches.linaro.org>; Tue, 18 Feb 2014 10:48:06 +0000 (UTC) Received: by mail-pb0-f69.google.com with SMTP id md12sf38572573pbc.0 for <linaro@patches.linaro.org>; Tue, 18 Feb 2014 02:48:05 -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=r4Df5UwN0IgCcH7eifVwNkGilxQmng3qycBQeLEoges=; b=frLjT/NYSliJvdsuy3W05CGGAwCqJ4X2iMhbcVvHC2y2DuaAhh0blQDkl9p5jmo+79 mJlAGe+8AEpd8nDYscimS1WJwKUj4HaoFypqyohRHXtXsnoOR8QR13aBrt1xtK5+L7P0 cTCj7HwjPfTxgl4GpJbuzOaR+L6yDZ95pay+kB5nLdvH7Dv3zUsvnT7LSORZ5OWTY7WC uKIjQOe5BgARLx1fMfganGdR+D9hv8yDeq0bBKjP2WzjVLhARs3oELr1pK3U9HR2O9Qg yDVOZRq7e77HirqxFAW4687BqLJWIEGvrX/LUnZgqKI/uyd/8mZaB85Quo2ZqfZsjwtU naEw== X-Gm-Message-State: ALoCoQm4UL/G5KPKLoFa3xC5qgvh4wYW4tZE6eAjnGaUEOxI+fMMjmo980kz7GB1fZbe2vw41Cwp X-Received: by 10.66.144.170 with SMTP id sn10mr11356316pab.43.1392720485739; Tue, 18 Feb 2014 02:48:05 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.44.102 with SMTP id f93ls1185359qga.75.gmail; Tue, 18 Feb 2014 02:48:05 -0800 (PST) X-Received: by 10.221.66.73 with SMTP id xp9mr16477507vcb.27.1392720485627; Tue, 18 Feb 2014 02:48:05 -0800 (PST) Received: from mail-vc0-f180.google.com (mail-vc0-f180.google.com [209.85.220.180]) by mx.google.com with ESMTPS id sq4si5380245vdc.2.2014.02.18.02.48.05 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 18 Feb 2014 02:48:05 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.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.220.180; Received: by mail-vc0-f180.google.com with SMTP id ks9so13084766vcb.11 for <patchwork-forward@linaro.org>; Tue, 18 Feb 2014 02:48:05 -0800 (PST) X-Received: by 10.220.131.210 with SMTP id y18mr20920262vcs.12.1392720485536; Tue, 18 Feb 2014 02:48:05 -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 u4csp207246vcz; Tue, 18 Feb 2014 02:48:05 -0800 (PST) X-Received: by 10.66.161.38 with SMTP id xp6mr9153937pab.145.1392720484732; Tue, 18 Feb 2014 02:48:04 -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 S1755228AbaBRKre (ORCPT <rfc822;linus.walleij@linaro.org> + 27 others); Tue, 18 Feb 2014 05:47:34 -0500 Received: from mail-pa0-f53.google.com ([209.85.220.53]:56422 "EHLO mail-pa0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755175AbaBRKrb (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 18 Feb 2014 05:47:31 -0500 Received: by mail-pa0-f53.google.com with SMTP id lj1so16558937pab.12 for <linux-kernel@vger.kernel.org>; Tue, 18 Feb 2014 02:47:30 -0800 (PST) X-Received: by 10.66.136.71 with SMTP id py7mr32667211pab.2.1392720450931; Tue, 18 Feb 2014 02:47:30 -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.28 for <multiple recipients> (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 18 Feb 2014 02:47:30 -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 15/15] regulator: as3711: Remove redundant error message Date: Tue, 18 Feb 2014 16:11:11 +0530 Message-Id: <1392720071-13503-15-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: <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.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: <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/as3711-regulator.c b/drivers/regulator/as3711-regulator.c index 856c55f3a832..b47283f91e2d 100644 --- a/drivers/regulator/as3711-regulator.c +++ b/drivers/regulator/as3711-regulator.c @@ -245,10 +245,8 @@ static int as3711_regulator_probe(struct platform_device *pdev) regs = devm_kzalloc(&pdev->dev, AS3711_REGULATOR_NUM * sizeof(struct as3711_regulator), GFP_KERNEL); - if (!regs) { - dev_err(&pdev->dev, "Memory allocation failed exiting..\n"); + if (!regs) return -ENOMEM; - } for (id = 0, ri = as3711_reg_info; id < AS3711_REGULATOR_NUM; ++id, ri++) { reg = ®s[id];
kzalloc prints its own OOM message upon failure. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> --- drivers/regulator/as3711-regulator.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)