From patchwork Thu Feb 20 08:53:03 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 24978 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pa0-f72.google.com (mail-pa0-f72.google.com [209.85.220.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 3E9D42066E for ; Thu, 20 Feb 2014 08:59:38 +0000 (UTC) Received: by mail-pa0-f72.google.com with SMTP id rd3sf4084451pab.3 for ; Thu, 20 Feb 2014 00:59:37 -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=O+lKXn6EjaFJ2IeOA3wO1VOmstUSJV6fBpU2tPe8Qso=; b=KpWsVO9Ge2jKAdHa6/eRItc5DSSR4QKhEmjPvr0V8h9BFV7u0znVVdQQpkEJqvKLfx O8IOYSGoQJbyXdODPBn55hxmfwwuggx8pWgbZaOFz0OfD7TpGhlxgP+CLKY7aUpmnyNZ pfgPgBQ/rnNxp0OLwkFR5Fk+5GPf44ZLTK7Q9gRAQViSxsxeYyyUoiqitkEB0oaiVjra o1NJsvo6ecK0tyG6goQUYcZIyfL/y80he+2SU1wyFTyGzR8QJfqUFIMO6AUM8WShOdeS ONRdpF2LyZPNXbePjNHEecz+nBd6En7Oa8WCfLHU8NRPh6f+I1EGcxDRggPqH2cOg6ky qBkw== X-Gm-Message-State: ALoCoQkBTG06n2vkuWaOdY0qtdYsC4qOrnhLRFGPRqF1vIURMeqjyrlNvcjCdjs49kp1WQyo50vO X-Received: by 10.66.158.6 with SMTP id wq6mr228922pab.39.1392886777158; Thu, 20 Feb 2014 00:59:37 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.30.8 with SMTP id c8ls442578qgc.56.gmail; Thu, 20 Feb 2014 00:59:37 -0800 (PST) X-Received: by 10.236.88.75 with SMTP id z51mr954430yhe.109.1392886777002; Thu, 20 Feb 2014 00:59:37 -0800 (PST) Received: from mail-ve0-f178.google.com (mail-ve0-f178.google.com [209.85.128.178]) by mx.google.com with ESMTPS id r78si76095yhj.105.2014.02.20.00.59.36 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 20 Feb 2014 00:59:36 -0800 (PST) Received-SPF: neutral (google.com: 209.85.128.178 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.178; Received: by mail-ve0-f178.google.com with SMTP id oy12so1547751veb.23 for ; Thu, 20 Feb 2014 00:59:36 -0800 (PST) X-Received: by 10.52.23.68 with SMTP id k4mr318834vdf.24.1392886776666; Thu, 20 Feb 2014 00:59:36 -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 u4csp40745vcz; Thu, 20 Feb 2014 00:59:36 -0800 (PST) X-Received: by 10.68.125.164 with SMTP id mr4mr679520pbb.27.1392886775861; Thu, 20 Feb 2014 00:59:35 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id tt8si2682990pbc.190.2014.02.20.00.59.26; Thu, 20 Feb 2014 00:59:26 -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 S1754630AbaBTI7F (ORCPT + 26 others); Thu, 20 Feb 2014 03:59:05 -0500 Received: from mail-pa0-f49.google.com ([209.85.220.49]:58614 "EHLO mail-pa0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754172AbaBTI7A (ORCPT ); Thu, 20 Feb 2014 03:59:00 -0500 Received: by mail-pa0-f49.google.com with SMTP id hz1so1619201pad.8 for ; Thu, 20 Feb 2014 00:59:00 -0800 (PST) X-Received: by 10.68.191.200 with SMTP id ha8mr767892pbc.66.1392886740443; Thu, 20 Feb 2014 00:59:00 -0800 (PST) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id eo11sm21100112pac.0.2014.02.20.00.58.57 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 20 Feb 2014 00:58:59 -0800 (PST) From: Sachin Kamat To: linux-kernel@vger.kernel.org Cc: broonie@kernel.org, lgirdwood@gmail.com, sachin.kamat@linaro.org, Sundar Iyer Subject: [PATCH 03/23] regulator: dbx500: Remove redundant error message Date: Thu, 20 Feb 2014 14:23:03 +0530 Message-Id: <1392886403-10640-3-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.178 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: Sundar Iyer --- drivers/regulator/dbx500-prcmu.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/drivers/regulator/dbx500-prcmu.c b/drivers/regulator/dbx500-prcmu.c index ce89f7848a57..f111dfb8d2d7 100644 --- a/drivers/regulator/dbx500-prcmu.c +++ b/drivers/regulator/dbx500-prcmu.c @@ -202,18 +202,12 @@ ux500_regulator_debug_init(struct platform_device *pdev, rdebug.num_regulators = num_regulators; rdebug.state_before_suspend = kzalloc(num_regulators, GFP_KERNEL); - if (!rdebug.state_before_suspend) { - dev_err(&pdev->dev, - "could not allocate memory for saving state\n"); + if (!rdebug.state_before_suspend) goto exit_destroy_power_state; - } rdebug.state_after_suspend = kzalloc(num_regulators, GFP_KERNEL); - if (!rdebug.state_after_suspend) { - dev_err(&pdev->dev, - "could not allocate memory for saving state\n"); + if (!rdebug.state_after_suspend) goto exit_free; - } dbx500_regulator_testcase(regulator_info, num_regulators); return 0;