Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1106746ybl; Wed, 14 Aug 2019 10:49:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqzDcm6bCkCJULCDUNATvC5R3ZZJ8T5Xf6tJakdfViwXcDpPz8SzCgtrpNiJnbSXsaKnhqyy X-Received: by 2002:a65:5183:: with SMTP id h3mr334434pgq.250.1565804977481; Wed, 14 Aug 2019 10:49:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565804977; cv=none; d=google.com; s=arc-20160816; b=04WuGl2yWyk+0UpNyDv+oxtBqVTSDHkReo7+GJwOR/2uVcOODdvduJgqaiGqJS8ImO tsfz5P507FITB0YMAfLSsCYYmIXd1PPYo7Rip9lYIn7ZI4Bpvo6hRw0DlN9clf3qtTZH cJNxkx4CJhGWTEY4xtpm+ZovyjZmfGyIWnePP4REH7VbzVwcaUzkjFpmMYc4gBXQk5PS ZPuJ9vfsfgzn0PjusOKpWYsXtx/elq5BPaaGHZ37leu4YSxG8g6B4N1U+JExb9Pw1wwJ vVrerGTz2RckcVi1YscpCknvFL0ONNkj5ZBShq4THusB7RNU4oHJYbW1dOWRKxN3nEu2 Cb6g== 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=0NgxYQZyADX7wGeMf0qg8RogagcfEOIY3QXxQvCx6fI=; b=r1MYf6dFR4uOcRbIGH328YxAcZltuxF9UKZbLOrHwL+0zLSZnv/PS47ChOhzaFaLbp iskhUYUMrcucDGYmYeL/xO5Ac+ECPqyggB68VoP1PEVCRDhI7KRAageZ/wQNOYCSThVy 7uvaMpZwMBruVyOuo9dwHBmoAFdQ4PVLGaWYQkRsq3f1yYcs00ftPdrJgcm3FyO1dALt jZjibA+LfwlkIuieNtTWzhGDqaOJyPbNWmtnbrD0eeijBWXh+OT8RF4ko/9EN+8brH9k CXdK0gxmqijfXwW6k2QZHVMOz6dI3ll7qPssnzycbxlTsBvZUDMyTv9GmQv/kauBRbZM D6PA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=gkUo10is; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a9si135367pfl.244.2019.08.14.10.49.21; Wed, 14 Aug 2019 10:49:37 -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=@gmail.com header.s=20161025 header.b=gkUo10is; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728841AbfHNRsO (ORCPT + 99 others); Wed, 14 Aug 2019 13:48:14 -0400 Received: from mail-pl1-f196.google.com ([209.85.214.196]:40641 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728253AbfHNRsO (ORCPT ); Wed, 14 Aug 2019 13:48:14 -0400 Received: by mail-pl1-f196.google.com with SMTP id a93so50950183pla.7; Wed, 14 Aug 2019 10:48:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=0NgxYQZyADX7wGeMf0qg8RogagcfEOIY3QXxQvCx6fI=; b=gkUo10isoegn4SBnVHc/SxhQpAVtJoBCEjnMMYwpmtTIAaP0KX6tTSW4Wlc41T7NOI Z9Zv1CNw0TM2L8bVcrAzvdlaKALot9PyfplL95knbvOnObki+0pw8f7Md8IZmJiZGHpw I8ECQyV+ideNMiGKgEEBP+rhPmsFQLv9ZpOfwExj7cXTwJFywnJJMtQCCTE3thfapCaj luXEz2fVIAh+2v+Je68tXBgrvNxqJBcaKK7WYgrKiT162cNAcQuPkCawNoCeIiN2mucc KC0zm2BbvYvk2gHR6Oi90A+9xdkc20Z07EYpmJLyOVgXslqWvK5ug6Q6WbKLmadOEpcP 8y6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=0NgxYQZyADX7wGeMf0qg8RogagcfEOIY3QXxQvCx6fI=; b=JSy1chz7M6HpknVbipJuLKaJgXEW+GlMPKqvx2cSwDcvb8yjl2vgAEpCDGriPlXO8Z r2m/aTNt8AlKyS2qcC12/2VuIt0fSJ05vHK+DrEteeMC5g7/BVoEkCrPvLW50dCbd7Iw o3KVTztfmFZLzSGHr+XVT10Wb98LWqyF1CaSueNmXzna4FjF+vYG5XgVB1gQqd351AYT GHPgb/OQ6bQ/54TZFjXLpkR7uMFleIxOc/ADPpkI+kuDkCaAWThct13w7pVt89X5UhNk 1raPZ3KLVKbnEPwaq61R7F5BcH20I9azE9mIGy8hCCrsGu6ZyAcTj4OsHvjZX3FFHa29 AvIA== X-Gm-Message-State: APjAAAWZb83agDJorBOhy6AlObTGoPUvNOkyza4mTksujd8tPfjZsdhx eZuRm89QjC/7f/XBIRDgA+4= X-Received: by 2002:a17:902:e106:: with SMTP id cc6mr514588plb.255.1565804893019; Wed, 14 Aug 2019 10:48:13 -0700 (PDT) Received: from dtor-ws ([2620:15c:202:201:3adc:b08c:7acc:b325]) by smtp.gmail.com with ESMTPSA id p1sm445586pfn.83.2019.08.14.10.48.11 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 14 Aug 2019 10:48:11 -0700 (PDT) Date: Wed, 14 Aug 2019 10:48:09 -0700 From: Dmitry Torokhov To: Stephen Boyd Cc: linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, Greg Kroah-Hartman Subject: Re: [PATCH v6 21/57] Input: Remove dev_err() usage after platform_get_irq() Message-ID: <20190814174809.GB121898@dtor-ws> References: <20190730181557.90391-1-swboyd@chromium.org> <20190730181557.90391-22-swboyd@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190730181557.90391-22-swboyd@chromium.org> User-Agent: Mutt/1.10.1 (2018-07-13) 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:21AM -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: Dmitry Torokhov > Cc: linux-input@vger.kernel.org > Cc: Greg Kroah-Hartman > Signed-off-by: Stephen Boyd Applied, thank you. -- Dmitry