From patchwork Thu Feb 20 08:53:05 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 24979 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 3F7D12066E for ; Thu, 20 Feb 2014 08:59:43 +0000 (UTC) Received: by mail-ie0-f198.google.com with SMTP id at1sf6193390iec.9 for ; Thu, 20 Feb 2014 00:59:43 -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=RUzQk9Gql6g3bjCsUapbIHeUJOIZtKbh96rVyjQEK64=; b=etYRLgip7LJh8Lf4XEaVcBNNwXwaG9xoyV4YNH5un4PIsHCtsCeJ6XEhjJjjsMXmZe gQLn0EffWLnFV+MLia3KHZE6Z7zW4y2TLHXWhkebLEtRRFnsvahcx3cJFfj2f1azlMCj vMEztLRO+56K4zqYG/2NB7ptLSN+9/g5/pT2ek3pL+yIMe7GCuAi50o1J81jt48sKoaf YCWjqnw6tj5SPaTAg/Z8LhIkyFC0tV3rQip9mHtQzEQ2xGmNWMQjZ+lspfNpHJsWEBOB iihJySZcmJCcJ7i4WVNVpyqJCkBD/gU9AqA2Vgfwqay2DstuPcCciVDZyBlDALikM99r 7APg== X-Gm-Message-State: ALoCoQl+NNv8S/4Dkxxom5Y8jOPUAdWgXbmLeWv7DPanZ5gzblqnKyFp8o8Fvl5ZEY9+tJMMPw+c X-Received: by 10.43.69.210 with SMTP id yd18mr262571icb.10.1392886783210; Thu, 20 Feb 2014 00:59:43 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.31.139 with SMTP id f11ls425635qgf.71.gmail; Thu, 20 Feb 2014 00:59:43 -0800 (PST) X-Received: by 10.236.72.40 with SMTP id s28mr1115273yhd.160.1392886783087; Thu, 20 Feb 2014 00:59:43 -0800 (PST) Received: from mail-vc0-f181.google.com (mail-vc0-f181.google.com [209.85.220.181]) by mx.google.com with ESMTPS id w68si3054760yhi.35.2014.02.20.00.59.42 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 20 Feb 2014 00:59:42 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.181 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.181; Received: by mail-vc0-f181.google.com with SMTP id ie18so1578283vcb.12 for ; Thu, 20 Feb 2014 00:59:42 -0800 (PST) X-Received: by 10.52.185.196 with SMTP id fe4mr269930vdc.27.1392886782304; Thu, 20 Feb 2014 00:59:42 -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 u4csp40754vcz; Thu, 20 Feb 2014 00:59:41 -0800 (PST) X-Received: by 10.66.146.199 with SMTP id te7mr743712pab.106.1392886781499; Thu, 20 Feb 2014 00:59:41 -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.35; Thu, 20 Feb 2014 00:59:36 -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 S1754668AbaBTI7K (ORCPT + 26 others); Thu, 20 Feb 2014 03:59:10 -0500 Received: from mail-pb0-f43.google.com ([209.85.160.43]:56957 "EHLO mail-pb0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754638AbaBTI7G (ORCPT ); Thu, 20 Feb 2014 03:59:06 -0500 Received: by mail-pb0-f43.google.com with SMTP id md12so1625990pbc.16 for ; Thu, 20 Feb 2014 00:59:06 -0800 (PST) X-Received: by 10.66.102.39 with SMTP id fl7mr647677pab.43.1392886746420; Thu, 20 Feb 2014 00:59:06 -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.03 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 20 Feb 2014 00:59:05 -0800 (PST) From: Sachin Kamat To: linux-kernel@vger.kernel.org Cc: broonie@kernel.org, lgirdwood@gmail.com, sachin.kamat@linaro.org Subject: [PATCH 05/23] regulator: fixed: Remove redundant error message Date: Thu, 20 Feb 2014 14:23:05 +0530 Message-Id: <1392886403-10640-5-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.220.181 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/fixed.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/regulator/fixed.c b/drivers/regulator/fixed.c index 3c307d62fd31..c61f7e97e4f8 100644 --- a/drivers/regulator/fixed.c +++ b/drivers/regulator/fixed.c @@ -130,10 +130,8 @@ static int reg_fixed_voltage_probe(struct platform_device *pdev) drvdata = devm_kzalloc(&pdev->dev, sizeof(struct fixed_voltage_data), GFP_KERNEL); - if (drvdata == NULL) { - dev_err(&pdev->dev, "Failed to allocate device data\n"); + if (!drvdata) return -ENOMEM; - } drvdata->desc.name = devm_kstrdup(&pdev->dev, config->supply_name,