Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp5219130ybi; Tue, 30 Jul 2019 16:24:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqwdGZjSjC6hASyh2AzYtJkzIeGS9sMtpBiqaW5scjdmywshQAzL+LJlI8QSegdaa3GXQJ3X X-Received: by 2002:a17:902:b702:: with SMTP id d2mr121246686pls.259.1564529041419; Tue, 30 Jul 2019 16:24:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564529041; cv=none; d=google.com; s=arc-20160816; b=nz0XWw2HtVn6lRPKk65XQGbxIbMOwQHGQbhsfs1mlqn61uKP8HvBNK8uJCAhN0KDzV HA1Wv1E8JZNB8ZcqNxLOB+Nfss0VOTz21Pge3nGfGYshUVrh/V3pYkGnUqMEB3XkgXXL tNBM1Pb8MgLCwb9zDljr8pUti91ncMSLjoyIQyBD/Wcdn9KdXgMmPVEnGQdo5VCLdJ9C runICURIoI6D8B0HdbH3D5j5wZ7xTo+YOyhf7zXZG4c1fhjFQc8EYTO6cHmgXCx3EmEx gO1XIrCg78MIBLv5moCEAzNuBJseKXCsSL2ujgyat6Lb73nr12XxtzjvhRVW76FOE+6x 7Fnw== 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=iCvBGwli/WPcO/1RYKZEdTHRdgbpmb34mVEofmd4W18=; b=Mraqb6da6IIdp9yt0hshMLfl1MOHi82Krb7d4+dvmG6lX2dgC4IXaNqFVjKTgYIS7Q NgjZFumh0O3lJZxsJJRz/VU+goDful2B3mF9G/1DVvPOIvZuigA7UFb8zzBYvz+rOk27 eJ/OYqrw2yU/AIDAuI/J78AoaD32wiWxM4Qlnk0Jo27rOoKtHsFIsN6mTWnq/JzVhFUv 9EWHJIbqiBjM55LprgHPFTtVLelq4Hq9TKoIZb7TPKqdlpFYghWnjTfBrRIL8PCo8o4O prh2w97NP7ryJRpONHOhWD9GmwBzfk/Re66FhrJexE0/NBn8DVzNibCDgIfu02FoPEfb jaRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=HJF0xAo6; 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 a18si32215085pgn.132.2019.07.30.16.23.46; Tue, 30 Jul 2019 16:24:01 -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=HJF0xAo6; 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 S1726911AbfG3UoT (ORCPT + 99 others); Tue, 30 Jul 2019 16:44:19 -0400 Received: from mail.kernel.org ([198.145.29.99]:38208 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725913AbfG3UoT (ORCPT ); Tue, 30 Jul 2019 16:44:19 -0400 Received: from earth.universe (unknown [185.62.205.103]) (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 D9B47206A2; Tue, 30 Jul 2019 20:44:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1564519458; bh=P3UiamUUeG6LN1NfFcjZtH7ENsm+grTuRBggTQlXPNc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=HJF0xAo6pygf6VzDSGmlJ5OP5GQGQP+tmdc6jEWdXIiaqfCygfqED2Rk/NN/e8FEc KY+1JQQZ/ANT3RO4dgIMTbWnUgfgH0kBGZ2vzt6P8PFVXenTYW0lCZo+r7h/zlgGce 2QCWy8zn3YHCZV8FJKZLcvaosNByUrSpRJJEuj2o= Received: by earth.universe (Postfix, from userid 1000) id 595B03C0943; Tue, 30 Jul 2019 22:44:15 +0200 (CEST) Date: Tue, 30 Jul 2019 22:44:15 +0200 From: Sebastian Reichel To: Stephen Boyd Cc: linux-kernel@vger.kernel.org, Greg Kroah-Hartman Subject: Re: [PATCH v6 16/57] HSI: Remove dev_err() usage after platform_get_irq() Message-ID: <20190730204415.qvqabstlv5r5m3qw@earth.universe> References: <20190730181557.90391-1-swboyd@chromium.org> <20190730181557.90391-17-swboyd@chromium.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="ugynw7smm36mkkr4" Content-Disposition: inline In-Reply-To: <20190730181557.90391-17-swboyd@chromium.org> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --ugynw7smm36mkkr4 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On Tue, Jul 30, 2019 at 11:15:16AM -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. >=20 > // > @@ > expression ret; > struct platform_device *E; > @@ >=20 > ret =3D > ( > platform_get_irq(E, ...) > | > platform_get_irq_byname(E, ...) > ); >=20 > if ( \( ret < 0 \| ret <=3D 0 \) ) > { > ( > -if (ret !=3D -EPROBE_DEFER) > -{ ... > -dev_err(...); > -... } > | > ... > -dev_err(...); > ) > ... > } > // >=20 > While we're here, remove braces on if statements that only have one > statement (manually). >=20 > Cc: Sebastian Reichel > Cc: Greg Kroah-Hartman > Signed-off-by: Stephen Boyd > --- >=20 > Please apply directly to subsystem trees Thanks, queued to hsi-next. -- Sebastian >=20 > drivers/hsi/controllers/omap_ssi_core.c | 4 +--- > drivers/hsi/controllers/omap_ssi_port.c | 4 +--- > 2 files changed, 2 insertions(+), 6 deletions(-) >=20 > diff --git a/drivers/hsi/controllers/omap_ssi_core.c b/drivers/hsi/contro= llers/omap_ssi_core.c > index 0cba567ee2d7..4bc4a201f0f6 100644 > --- a/drivers/hsi/controllers/omap_ssi_core.c > +++ b/drivers/hsi/controllers/omap_ssi_core.c > @@ -370,10 +370,8 @@ static int ssi_add_controller(struct hsi_controller = *ssi, > if (err < 0) > goto out_err; > err =3D platform_get_irq_byname(pd, "gdd_mpu"); > - if (err < 0) { > - dev_err(&pd->dev, "GDD IRQ resource missing\n"); > + if (err < 0) > goto out_err; > - } > omap_ssi->gdd_irq =3D err; > tasklet_init(&omap_ssi->gdd_tasklet, ssi_gdd_tasklet, > (unsigned long)ssi); > diff --git a/drivers/hsi/controllers/omap_ssi_port.c b/drivers/hsi/contro= llers/omap_ssi_port.c > index 2cd93119515f..a0cb5be246e1 100644 > --- a/drivers/hsi/controllers/omap_ssi_port.c > +++ b/drivers/hsi/controllers/omap_ssi_port.c > @@ -1038,10 +1038,8 @@ static int ssi_port_irq(struct hsi_port *port, str= uct platform_device *pd) > int err; > =20 > err =3D platform_get_irq(pd, 0); > - if (err < 0) { > - dev_err(&port->device, "Port IRQ resource missing\n"); > + if (err < 0) > return err; > - } > omap_port->irq =3D err; > err =3D devm_request_threaded_irq(&port->device, omap_port->irq, NULL, > ssi_pio_thread, IRQF_ONESHOT, "SSI PORT", port); > --=20 > Sent by a computer through tubes >=20 --ugynw7smm36mkkr4 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEE72YNB0Y/i3JqeVQT2O7X88g7+poFAl1ArBoACgkQ2O7X88g7 +ppedw/+Jc8kGpySHPFQ4goKZ5kTA5ajxzpkcQEaKh38ZnwVpsOHZ4ktk+vpuKbo dwaCaaQfx9I1oPt8hkIh8Xu3Ur+hnK/MTj/dlSgBy54EjTrFA71S6Q5o+RHEcqSb Hj+MbUX/xP5PbUD73PAJ+EBphIDHoPOzEo9OOO8nWmDDg1F1C3cG+bv6bFgKVSxN dG5zbX0wdmsb8JZpm4wMidBdNx+XhRAVWpJFlqYOloummZUniI+D1SaDctJT9ad8 KWNgZYwBU7MdG31OheLJX5mHngcje+/taccdDmKcZABIRNJSPRGWzyMHAZpgG7YY X6zkj4CAbXr2QjCdCOAL4iiAQr0wsp9WoWIEPWVqrMh6F2myckadf6IzfxWzpJVo eltgW33ZhzGttTI9GPm93BVNDVjHsAayPn6RnSLv+aF/Zgch5IU2PM+veUhFzuby qH7d149BzFqSX+1g8IGRsftqHqHXt+SMnHdDOV3SF42ZAxhzKF4yftfIM7UZzZFK 760zoMR+0OVgpy4AaoaQRSMqFNCgY5194e+4pesBUlH1x58H+C8P4UpIUsSD8lgt mb2uNofUdr4ic+fYrRHs2oLM0U1MYjhpgNJoJGP/5wQBakVcmBaJ1zWsrooNYKmy +L2EQ1HGKgq52gS80/YcSDSdffG1Pwka7WYjvv+CL2PkqNmriEQ= =akOq -----END PGP SIGNATURE----- --ugynw7smm36mkkr4--