From patchwork Thu Feb 20 08:53:21 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 24990 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-bk0-f72.google.com (mail-bk0-f72.google.com [209.85.214.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 5056520AE6 for ; Thu, 20 Feb 2014 09:00:54 +0000 (UTC) Received: by mail-bk0-f72.google.com with SMTP id d7sf3397631bkh.7 for ; Thu, 20 Feb 2014 01:00:53 -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=B64PZcZiKHT1gjIpxtc8lUrvqa4Ryx/NWBZ1zXvJl+w=; b=K5XNUomtZdQPD2RvKe9PrGaUf9YPLSvXrO9CpbmTcvTenCkPIGzxFn67fxSY7lsHnA nPabh86T8X37IemY5381yvotOKXwSHo0xbqJKEpn44Nin7j4Hua6xil/KLQs8/CUuHPH n8ZVRhZISwrRxxoZ/bGjy/HLDCQ2oP9fdTx6fKtWrqPEL8IzmiF11QbP7tymTuERjFFu RzEkiomZLeE6r1vj56WtFrfht2wKmMkf1rEZVPdCZBlNSu7J94MlOMYhv3EqG8qLs87s lJcXHT4HoW0wJkZHlzihW1Q+AYYEV9sIN1C6LETMmKs7+v+1QXOnYbqTeWx0TKY75lSc jc6g== X-Gm-Message-State: ALoCoQknBQF9UfvIjgYJx6kMIRcnnUXoFbZ8+knHfq8B42F5PkHzb7e8yj/ZyAuW2Bk3qhOxRRbV X-Received: by 10.152.189.69 with SMTP id gg5mr304801lac.9.1392886853044; Thu, 20 Feb 2014 01:00:53 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.51.130 with SMTP id u2ls439357qga.34.gmail; Thu, 20 Feb 2014 01:00:52 -0800 (PST) X-Received: by 10.52.243.164 with SMTP id wz4mr271740vdc.31.1392886852303; Thu, 20 Feb 2014 01:00:52 -0800 (PST) Received: from mail-vc0-f171.google.com (mail-vc0-f171.google.com [209.85.220.171]) by mx.google.com with ESMTPS id yx7si1195512vcb.125.2014.02.20.01.00.52 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 20 Feb 2014 01:00:52 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.171 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.171; Received: by mail-vc0-f171.google.com with SMTP id le5so1579660vcb.30 for ; Thu, 20 Feb 2014 01:00:52 -0800 (PST) X-Received: by 10.220.191.134 with SMTP id dm6mr389786vcb.16.1392886852223; Thu, 20 Feb 2014 01:00:52 -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 u4csp40857vcz; Thu, 20 Feb 2014 01:00:51 -0800 (PST) X-Received: by 10.68.163.3 with SMTP id ye3mr775458pbb.78.1392886851417; Thu, 20 Feb 2014 01:00:51 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i9si2586063pbl.298.2014.02.20.01.00.50; Thu, 20 Feb 2014 01:00:50 -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 S1755205AbaBTJAr (ORCPT + 26 others); Thu, 20 Feb 2014 04:00:47 -0500 Received: from mail-pa0-f51.google.com ([209.85.220.51]:51291 "EHLO mail-pa0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755089AbaBTI7x (ORCPT ); Thu, 20 Feb 2014 03:59:53 -0500 Received: by mail-pa0-f51.google.com with SMTP id ld10so1645600pab.10 for ; Thu, 20 Feb 2014 00:59:52 -0800 (PST) X-Received: by 10.68.134.8 with SMTP id pg8mr781610pbb.84.1392886792679; Thu, 20 Feb 2014 00:59:52 -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.50 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 20 Feb 2014 00:59:52 -0800 (PST) From: Sachin Kamat To: linux-kernel@vger.kernel.org Cc: broonie@kernel.org, lgirdwood@gmail.com, sachin.kamat@linaro.org Subject: [PATCH 21/23] regulator: wm831x-isink: Remove redundant error message Date: Thu, 20 Feb 2014 14:23:21 +0530 Message-Id: <1392886403-10640-21-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.171 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/wm831x-isink.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/regulator/wm831x-isink.c b/drivers/regulator/wm831x-isink.c index 0339b886df5d..72e385e76a9d 100644 --- a/drivers/regulator/wm831x-isink.c +++ b/drivers/regulator/wm831x-isink.c @@ -165,10 +165,8 @@ static int wm831x_isink_probe(struct platform_device *pdev) isink = devm_kzalloc(&pdev->dev, sizeof(struct wm831x_isink), GFP_KERNEL); - if (isink == NULL) { - dev_err(&pdev->dev, "Unable to allocate private data\n"); + if (!isink) return -ENOMEM; - } isink->wm831x = wm831x;