From patchwork Thu Feb 20 08:53:01 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 24976 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pd0-f200.google.com (mail-pd0-f200.google.com [209.85.192.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 98EBC2066E for ; Thu, 20 Feb 2014 08:59:03 +0000 (UTC) Received: by mail-pd0-f200.google.com with SMTP id y10sf3681421pdj.11 for ; Thu, 20 Feb 2014 00:59:02 -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:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=ZDMasK1UlXjDbVXbNr2lgGN6VThR17oRA+zM8sqE114=; b=XpE6UFw7EfYUbPFpWY35u7PcxmOPrCvWMv146Qqc+GaB6ZK2HK39QBEFX8R6JjAf9j m6VF8hnauOvjJi6q2TP01zHNOEV9MGdhbplH6NgjoMwRggQQhLBrN//Nuh6uvhJP+pzH 9iytIi6n0Kd+bRLIV+J8mUabsk97CL7LmWm1TNx7ObHJOmRSVSFDqWRWllwcRXxwlzox cjP2LOPFq5/1rQRvnjT6K13UO7aBw2G88+4iFDXXtSPIcOJ/RiZ365Q91DEQEeNj7mR6 7wpwDdNdUdilzmTJoZ61Ks75wZCBq0Qp5D6qZ8aQQC+OWSk89dRhHLCIZ/NqDKeaf1B7 D/8g== X-Gm-Message-State: ALoCoQnD3ocOVDotKQ6IObj9hUoGN63FWoaMaBfo4OWaBlF3Agvu88aMfDorKjNvqjiMDBYGA0NC X-Received: by 10.66.222.105 with SMTP id ql9mr278149pac.9.1392886742768; Thu, 20 Feb 2014 00:59:02 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.83.73 with SMTP id i67ls460016qgd.97.gmail; Thu, 20 Feb 2014 00:59:02 -0800 (PST) X-Received: by 10.236.90.65 with SMTP id d41mr1261163yhf.28.1392886742596; Thu, 20 Feb 2014 00:59:02 -0800 (PST) Received: from mail-ve0-f169.google.com (mail-ve0-f169.google.com [209.85.128.169]) by mx.google.com with ESMTPS id h55si3051415yhi.102.2014.02.20.00.59.02 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 20 Feb 2014 00:59:02 -0800 (PST) Received-SPF: neutral (google.com: 209.85.128.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.128.169; Received: by mail-ve0-f169.google.com with SMTP id oy12so1589901veb.0 for ; Thu, 20 Feb 2014 00:59:02 -0800 (PST) X-Received: by 10.52.106.166 with SMTP id gv6mr277268vdb.86.1392886742180; Thu, 20 Feb 2014 00:59:02 -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 u4csp40712vcz; Thu, 20 Feb 2014 00:59:01 -0800 (PST) X-Received: by 10.68.36.41 with SMTP id n9mr613840pbj.99.1392886741363; Thu, 20 Feb 2014 00:59:01 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id fn1si898569pbb.72.2014.02.20.00.59.00; Thu, 20 Feb 2014 00:59:00 -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 S1754019AbaBTI6z (ORCPT + 26 others); Thu, 20 Feb 2014 03:58:55 -0500 Received: from mail-pb0-f53.google.com ([209.85.160.53]:36688 "EHLO mail-pb0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753164AbaBTI6y (ORCPT ); Thu, 20 Feb 2014 03:58:54 -0500 Received: by mail-pb0-f53.google.com with SMTP id md12so1616671pbc.26 for ; Thu, 20 Feb 2014 00:58:53 -0800 (PST) X-Received: by 10.67.3.40 with SMTP id bt8mr761697pad.78.1392886733791; Thu, 20 Feb 2014 00:58:53 -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.50 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 20 Feb 2014 00:58:53 -0800 (PST) From: Sachin Kamat To: linux-kernel@vger.kernel.org Cc: broonie@kernel.org, lgirdwood@gmail.com, sachin.kamat@linaro.org, Krystian Garbaciak Subject: [PATCH 01/23] regulator: da9063: Remove redundant error message Date: Thu, 20 Feb 2014 14:23:01 +0530 Message-Id: <1392886403-10640-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 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.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 Cc: Krystian Garbaciak --- drivers/regulator/da9063-regulator.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/regulator/da9063-regulator.c b/drivers/regulator/da9063-regulator.c index 22ba992e73f2..38ad5e950907 100644 --- a/drivers/regulator/da9063-regulator.c +++ b/drivers/regulator/da9063-regulator.c @@ -776,10 +776,8 @@ static int da9063_regulator_probe(struct platform_device *pdev) size = sizeof(struct da9063_regulators) + n_regulators * sizeof(struct da9063_regulator); regulators = devm_kzalloc(&pdev->dev, size, GFP_KERNEL); - if (!regulators) { - dev_err(&pdev->dev, "No memory for regulators\n"); + if (!regulators) return -ENOMEM; - } regulators->n_regulators = n_regulators; platform_set_drvdata(pdev, regulators);