Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp5691460ybi; Wed, 31 Jul 2019 01:46:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqwGNf/WXBW/J1gzayANyDarLTEzNT/fSyLcb90q05hNS4hco1MbRn6/2D9a5tCyIfJW13Rp X-Received: by 2002:a17:90a:1c17:: with SMTP id s23mr1801130pjs.108.1564562784918; Wed, 31 Jul 2019 01:46:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564562784; cv=none; d=google.com; s=arc-20160816; b=t3bVq3kE0K9Cnwo9ii0ftPy0CaF6PTElB9y0BCXD3++xjx5Eds5/5/WlU9iaWN/xO2 fc/rGQLzMQLKkGFfojMq0y+tuKn7GcBEUicattPuYU+gNSp6/Zr23Ni1BgHepM6GYf0A PRA3pb4IS8wnMZLjGeVkqnZWxKTURnFEl/nBHHUbIgEInTc4nyus6Kk06ecCFWJqB/GH xIQ+gsPqVwLtrwjJimGRi9nHYY7bly5qRpT7jsNSZ9DE5YxZpi1WbpVdkH/fyS2H9BV0 7VAHOVE7OmTiP1LtEhnJIOAZrul49rKzzRhZ2nB/7PsPsaNC2IBNL+7gHbB1Fu/rHw42 y6Zg== 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=awjrNRBvm4FXgxATP/QRahTe3ohVWbKVVLjbmX4fNhM=; b=bZPUwLpf1p8x2/ezWfOfwzYLTr+il6MdNMjvQEk7CjbDskF2NcisVVBROWn2KcgC5d fcLA+Jf2jxYB32Wlj5g5LvLjT0DYMc71zwSyi4FHH4s7ZoAXeZmM0jCqj+w6UZlBcgRm bUF8+H/etJy0mT3j62QvkZ90IGujph327ABhoxc0i0t1oedagv67h5SHwtAqeGydTYBL BSvffU7iK1uOKM142eOg8bWFBgHpN7w4zwkrUPg6QG/XXqYmA4uEMMkvfFqjtdo/aC6Y N6mZzy79y7oLq9DiDcvDvbUV8XNN1Rdppj8sEqVNBJytAMApF6XrW9YnS71tt3GMSYjS yRZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=NDE0y2eO; 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 21si7831844pgk.492.2019.07.31.01.46.09; Wed, 31 Jul 2019 01:46:24 -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=NDE0y2eO; 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 S1728258AbfGaIlC (ORCPT + 99 others); Wed, 31 Jul 2019 04:41:02 -0400 Received: from mail.kernel.org ([198.145.29.99]:46782 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726467AbfGaIlC (ORCPT ); Wed, 31 Jul 2019 04:41:02 -0400 Received: from willie-the-truck (236.31.169.217.in-addr.arpa [217.169.31.236]) (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 7EE10206A3; Wed, 31 Jul 2019 08:41:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1564562461; bh=2AMJKQAIYqySJFCOFXeanD8LAYVz2PapeYUAn5OrGkI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=NDE0y2eOIYjWbDWePVfwitFojS9MPeBsJm25h/c3+zwl0eA1qD9r6COZ051ELCiVY zyx36m+6yoaFMLQWdHYxsyt8ggEIGfSjsd7nXVvNbTBgOOoubxg/SysOp5ppQ5pBtt dy7bffEyvEb8Ir2h05tMbUiE70X2y7jd8Ii58IsA= Date: Wed, 31 Jul 2019 09:40:57 +0100 From: Will Deacon To: Stephen Boyd Cc: linux-kernel@vger.kernel.org, Mark Rutland , linux-arm-kernel@lists.infradead.org, Greg Kroah-Hartman Subject: Re: [PATCH v6 32/57] perf: Remove dev_err() usage after platform_get_irq() Message-ID: <20190731084056.jd7p5lrvyun6ynlf@willie-the-truck> References: <20190730181557.90391-1-swboyd@chromium.org> <20190730181557.90391-33-swboyd@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190730181557.90391-33-swboyd@chromium.org> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 30, 2019 at 11:15:32AM -0700, 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). > > Cc: Will Deacon > Cc: Mark Rutland > Cc: linux-arm-kernel@lists.infradead.org > Cc: Greg Kroah-Hartman > Signed-off-by: Stephen Boyd Acked-by: Will Deacon Please let me know if you'd rather I route this via the arm-perf tree. Will