Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp6114985ybi; Wed, 31 Jul 2019 08:34:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqxh+R4ftonPeuEmSv6k1vk9OY+jWGhQye3PbFfL/DzGMWn7e8dETAU+34M2OnnBy9W2THgJ X-Received: by 2002:a17:902:b582:: with SMTP id a2mr123360528pls.128.1564587270097; Wed, 31 Jul 2019 08:34:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564587270; cv=none; d=google.com; s=arc-20160816; b=guzdq33ua23HQVPvWOFIjnOSzjsCoqBlwXtIhu5YbRE51Fqx0fPwG5uVQMTnj/qK59 LamEWkq42Y3jpzblBtcEbeuJuvu7++T4WqX06eLAkdgLNYMAbwhdAb89UWgruLK/P+Uv K6X3lSHmy31aOpPc4MEr6Os4afiFGCWk4lP+RQkYhkhWbywCTSEaMJKoYzKf/GQWC+12 n1d1FR6+H963A/3X0qPos9cL6KEPrp2FJ9zehcSm30FD1SqCDrzJaE/+nDuZI5gTNhMs XeaqnjoJB4UdeC3T89wdRVOOSQ/28WGB4FtP7wLv2UWEfs3pdsDHadAwatofQqXrUfYA kdWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=5zjeSCGZ3/vDTwSz2xr8xFj6NAZ3deEKI9CxVSnaUfE=; b=MFlCXR5ZWWpTykqo5KRs+4BryzuS/cGoNJ9mgzIOTcAvPU+BmnRHVTon/H/sLWSc8w A9mVEmcyOxP3H7OLMpQ4IC+tGb7NYgbr46+tsKwtqyaFTkdb6nu96W2KBX1BqvOf8nlC L/2ufwh7zNDNkXsyC0MnYPHOSVroa5jFdKUdcvwJEHyJzX24C0kQs7GQAUMOJX8xD2NL MzYpxRJtx4ESKP3sw4Z0eUbPbscBUc+bgFTqsLaxbigTwg7cC+2ZvrKh8bG9D6rTB5pC ZPGyRD8u/RzCO/zs08xssLdfShriNA5OIPR8lgevxgo18LwN/gv9QdcQFPX5AfenwyDi QVNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=pliu9Dlr; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n187si35910442pga.165.2019.07.31.08.34.14; Wed, 31 Jul 2019 08:34:30 -0700 (PDT) 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; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=pliu9Dlr; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727221AbfGaP3Q (ORCPT + 99 others); Wed, 31 Jul 2019 11:29:16 -0400 Received: from mail.kernel.org ([198.145.29.99]:36626 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726339AbfGaP3Q (ORCPT ); Wed, 31 Jul 2019 11:29:16 -0400 Received: from localhost (unknown [171.76.116.36]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6B577206A3; Wed, 31 Jul 2019 15:29:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1564586955; bh=+BRKzUwM8OwruXRsxUuLWu4ziaD3FNKMFe2NrmJpS6Q=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=pliu9DlraLieV4H56poR/05eLtgrQXF2E550yCD/1BqkY5J8a4LBlP0GQ3TUz5W+R MySUdpCGd0XuxIluW9RFS9kEIlqodJ6wKmzRenzG17xQaoBMaHXde4mAhZC/NhuU08 c2tn4Qxy41GvYxCrBRol7OFAuj+nVN21IMbUMwFQ= Date: Wed, 31 Jul 2019 20:58:02 +0530 From: Vinod Koul To: Stephen Boyd Cc: linux-kernel@vger.kernel.org, Dan Williams , dmaengine@vger.kernel.org, Greg Kroah-Hartman Subject: Re: [PATCH v6 10/57] dmaengine: Remove dev_err() usage after platform_get_irq() Message-ID: <20190731152802.GW12733@vkoul-mobl.Dlink> References: <20190730181557.90391-1-swboyd@chromium.org> <20190730181557.90391-11-swboyd@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190730181557.90391-11-swboyd@chromium.org> User-Agent: Mutt/1.11.3 (2019-02-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 30-07-19, 11:15, Stephen Boyd wrote: > We don't need dev_err() messages when platform_get_irq() fails now that > platform_get_irq() prints an error message itself when something goes > wrong. Let's remove these prints with a simple semantic patch. > > // > @@ > expression ret; > struct platform_device *E; > @@ > > ret = > ( > platform_get_irq(E, ...) > | > platform_get_irq_byname(E, ...) > ); > > if ( \( ret < 0 \| ret <= 0 \) ) > { > ( > -if (ret != -EPROBE_DEFER) > -{ ... > -dev_err(...); > -... } > | > ... > -dev_err(...); > ) > ... > } > // > > While we're here, remove braces on if statements that only have one > statement (manually). I would have preferred a patch per driver, but that does become insane for treewide work, so I am taking this as is Applied, thanks -- ~Vinod