From patchwork Tue Feb 18 10:41:08 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 24827 Return-Path: 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 997A9203C5 for ; Tue, 18 Feb 2014 10:48:04 +0000 (UTC) Received: by mail-pb0-f69.google.com with SMTP id md12sf38494245pbc.8 for ; Tue, 18 Feb 2014 02:48:03 -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=6oX/4jmu0tm3okbINx1C12xjD5rpOlbqWu405ggBjhQ=; b=d+oP5dMedhJhH65WP0K66FBOuOQfVHPC8jcklKUXwUvmu7Tw/IBPjD0ZvHWNNtNRoL V7jRwo+3+v0++famZHJakydF4MG7X1noGMf1MySFu5dCZE7hLkprRlftJnm2l0o8RvrE WkuOLp6JBSHJm3yIgP6KWWBo/8q2b8/kEIlZyDDvY6MKso0Gbc1nHUR0lNVq++FIhxIO Mj+/sJT2RHB9SpQCZSjGCcmAsj8vAAfVobAJ+h8q8bzdWiDyPsVPCOaydZ164F5aop8j Aj2rU7jpa3PXOzXwj5xX3pVikBUTbaJg1VrTEmQvFe9nVaNHpoBAcuSDNSPMaSeV8/wF 2ZTQ== X-Gm-Message-State: ALoCoQlnAN1P+ZcgJElWKTlrhkgW14/PLCvvahFIYpWAaOEoVQOkEySpZLwnIPW841QL9qbxM6pu X-Received: by 10.66.253.9 with SMTP id zw9mr13368224pac.38.1392720483784; Tue, 18 Feb 2014 02:48:03 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.31.72 with SMTP id e66ls1243673qge.67.gmail; Tue, 18 Feb 2014 02:48:03 -0800 (PST) X-Received: by 10.52.65.171 with SMTP id y11mr1312454vds.52.1392720483668; Tue, 18 Feb 2014 02:48:03 -0800 (PST) Received: from mail-ve0-f175.google.com (mail-ve0-f175.google.com [209.85.128.175]) by mx.google.com with ESMTPS id fi9si5375969vcb.114.2014.02.18.02.48.03 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 18 Feb 2014 02:48:03 -0800 (PST) Received-SPF: neutral (google.com: 209.85.128.175 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.175; Received: by mail-ve0-f175.google.com with SMTP id c14so13134547vea.20 for ; Tue, 18 Feb 2014 02:48:03 -0800 (PST) X-Received: by 10.220.106.84 with SMTP id w20mr20686971vco.18.1392720483562; Tue, 18 Feb 2014 02:48:03 -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 u4csp207241vcz; Tue, 18 Feb 2014 02:48:03 -0800 (PST) X-Received: by 10.66.136.131 with SMTP id qa3mr31798310pab.77.1392720482985; Tue, 18 Feb 2014 02:48:02 -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.02; Tue, 18 Feb 2014 02:48:02 -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 S1755187AbaBRKrZ (ORCPT + 27 others); Tue, 18 Feb 2014 05:47:25 -0500 Received: from mail-pa0-f53.google.com ([209.85.220.53]:53518 "EHLO mail-pa0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755163AbaBRKrV (ORCPT ); Tue, 18 Feb 2014 05:47:21 -0500 Received: by mail-pa0-f53.google.com with SMTP id lj1so16461061pab.26 for ; Tue, 18 Feb 2014 02:47:21 -0800 (PST) X-Received: by 10.67.5.131 with SMTP id cm3mr32158852pad.92.1392720441366; Tue, 18 Feb 2014 02:47:21 -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.18 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 18 Feb 2014 02:47:20 -0800 (PST) From: Sachin Kamat To: linux-kernel@vger.kernel.org Cc: broonie@kernel.org, lgirdwood@gmail.com, sachin.kamat@linaro.org Subject: [PATCH 12/15] regulator: act8865: Remove redundant error message Date: Tue, 18 Feb 2014 16:11:08 +0530 Message-Id: <1392720071-13503-12-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.128.175 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/act8865-regulator.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/regulator/act8865-regulator.c b/drivers/regulator/act8865-regulator.c index 2d2c3b004ab7..a5ff30c8a1e3 100644 --- a/drivers/regulator/act8865-regulator.c +++ b/drivers/regulator/act8865-regulator.c @@ -228,11 +228,8 @@ static int act8865_pdata_from_dt(struct device *dev, pdata->regulators = devm_kzalloc(dev, sizeof(struct act8865_regulator_data) * ARRAY_SIZE(act8865_matches), GFP_KERNEL); - if (!pdata->regulators) { - dev_err(dev, "%s: failed to allocate act8865 registor\n", - __func__); + if (!pdata->regulators) return -ENOMEM; - } pdata->num_regulators = matched; regulator = pdata->regulators;