Received: by 2002:ab2:3319:0:b0:1ef:7a0f:c32d with SMTP id i25csp10535lqc; Thu, 7 Mar 2024 08:52:29 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCX7r9e/L5O4QL8SeS+wh8NPL9znHHKOnBAVkaSe5cjs6/EGktFPtC9boxlxOTeGxaB1R5/Da98AMWWkb4lAsVB1Elxpf5WIXzuRAwdB8A== X-Google-Smtp-Source: AGHT+IEpxaPf4cwaDG8RZh8Q5RxDacjCRpLfNedUL6e2iynbgXdyiNlqLSQjI7jFp/obA+zQZ/nO X-Received: by 2002:a05:6808:614c:b0:3c1:f61c:a1d with SMTP id dl12-20020a056808614c00b003c1f61c0a1dmr8562705oib.47.1709830349095; Thu, 07 Mar 2024 08:52:29 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709830349; cv=pass; d=google.com; s=arc-20160816; b=FhAGD9wJIploUMzGmadITwGRku407FDTz+X8HlDA+NXVNX0M6j2SFUWWTBWzR02FPk 36FQ6Wg12ZaS63kPWhcrWFtbCg3LGTfuA94pwv2A2dDEZL7kU2uHagq02lKbTQMjEJfh Mi2cH6pI37Rb6+DYRD/IQbzLy9FbbVxMrL6euxS1Wu5OyCMNlVSqOi459S4lEFnaFF1l 2RoCef68GizhLM3FDYv0awjdA2KFTlkN2K0OodYo/HtCbZ/RHFCYsYIf+wTaHLqsm614 RBy54zl07gdkr0pzWcOu0hkOCjvXyZZEUGk5tk2v0ZHq+XfyYOeQW0fvkQfQwnRsJUcb LvEA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=f2/S92mTbncPAvYp/hBRdlFXlXrhmDnZi4nYcd3fkA0=; fh=Xxb/o/VT2+KKomfD0LE+Zgi4TAqBo+pdc9fL7MZP4UA=; b=bEJ0D9pmtjA9tlwbDhTaIbhJwff5uHPHx6H7+o7XMpKayjOaXph16jdBC0Eq0U8igX ls4dt39T2GwuXYOer/vtfDo04oCEqSPdNp+5oUW6Nz7W60A+dTezlgBbaBFMQ/4rZLXs SS5LaNGWwrgiCas+IZJrVYSuK6BWz6wq/8evirQfWDJdVOAtyUeX4K8dLgsqq8CK8Wlu oCwaEva4cUgRpGf+eAevqT/6UTEzOmETMRdaCYnrTqQH8vGINlOxlwXI/kvWAjdC59Wu xK8jrebWyTKUgA1VVixzeySXoy1LQLQWOpHCd9rSl6VxzmEyKiOCI1fPSAcgH07jtzqS bgsQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-95889-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-95889-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id w21-20020ac857d5000000b0042ef8de106bsi7853161qta.143.2024.03.07.08.52.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Mar 2024 08:52:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-95889-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-95889-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-95889-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 15AF31C23514 for ; Thu, 7 Mar 2024 16:52:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6632D130AC6; Thu, 7 Mar 2024 16:52:09 +0000 (UTC) Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0DEA912DDBE for ; Thu, 7 Mar 2024 16:52:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.203.201.7 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709830328; cv=none; b=M1YQdJ60gIpj/RkW+eT4jZVPWjJI+ZcMT1TFTqjZevguevrLYYx75gBqnVGvh+xZ4GpW5QpqNPS3PN0CVis37UYqEtmeJOYJ+ChjJMgTcl6bKlCrK6tKksbDP4J0vEti40ATLgdSevBDukHp+WrwP0STQVn6O2bJ7hFRN465DgA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709830328; c=relaxed/simple; bh=i9CCT9j7BCqV2bE+0gCx3jMpwRqeW581xksody4aj88=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=NhtLLHcHOkXIQ5If2aPzn8HNYuo/EElvFgmE+6bpqFkrURynjVxuHfILtU6g+FcIR8w8qqoJfoEdU2/kOYVG2JfnFBZSLFPxDXKKmL8s2O7VuLROBqRBuUDQ50nBarm1s01eJQgoNIJGnNkr5gh2wMi2g5dgQhf8ircyQ49hJlI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; arc=none smtp.client-ip=185.203.201.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1riGyO-00019r-AR; Thu, 07 Mar 2024 17:52:00 +0100 Received: from [2a0a:edc0:0:900:1d::77] (helo=ptz.office.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1riGyN-004yht-Qw; Thu, 07 Mar 2024 17:51:59 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1riGyN-001PCL-2O; Thu, 07 Mar 2024 17:51:59 +0100 Date: Thu, 7 Mar 2024 17:51:59 +0100 From: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= To: Colin Ian King Cc: Greg Kroah-Hartman , linux-usb@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH][next] usb: gadget: net2272: remove redundant variable irqflags Message-ID: References: <20240307105135.1981060-1-colin.i.king@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="gewgcxuilb6kaoqd" Content-Disposition: inline In-Reply-To: <20240307105135.1981060-1-colin.i.king@gmail.com> X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org --gewgcxuilb6kaoqd Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Mar 07, 2024 at 10:51:35AM +0000, Colin Ian King wrote: > The variable irqflags is being initialized and being bit-or'd with > values but it is never read afterwards. The variable is redundant > and can be removed. >=20 > Cleans up clang scan build warning: > drivers/usb/gadget/udc/net2272.c:2610:15: warning: variable 'irqflags' > set but not used [-Wunused-but-set-variable] >=20 > Signed-off-by: Colin Ian King this "problem" exists since the driver was introduced in commit ceb80363b2ec ("USB: net2272: driver for PLX NET2272 USB device controller"). Might be worth a Fixes: line. I wonder if the better fix would be: diff --git a/drivers/usb/gadget/udc/net2272.c b/drivers/usb/gadget/udc/net2= 272.c index 12e76bb62c20..19bbc38f3d35 100644 --- a/drivers/usb/gadget/udc/net2272.c +++ b/drivers/usb/gadget/udc/net2272.c @@ -2650,7 +2650,7 @@ net2272_plat_probe(struct platform_device *pdev) goto err_req; } =20 - ret =3D net2272_probe_fin(dev, IRQF_TRIGGER_LOW); + ret =3D net2272_probe_fin(dev, irqflags); if (ret) goto err_io; =20 Best regards Uwe --=20 Pengutronix e.K. | Uwe Kleine-K=F6nig | Industrial Linux Solutions | https://www.pengutronix.de/ | --gewgcxuilb6kaoqd Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEP4GsaTp6HlmJrf7Tj4D7WH0S/k4FAmXp8K4ACgkQj4D7WH0S /k726wgApuSl5j8yqZxfz0r/ljO+iYK/Mkfds9vddxUBRxPq16H/WB7iqdlAAj6L Z3+ZTxiXgsExqYh+ZEeU4lKwHa8DYotgoQZOxkANsqjJBIK+JQoDj73w+UvraCEv sGi0Uv606kD8zV1Nb8pYq5O9n8G24XWwH9f1y96zKlt+IAnwLnDrq0D8d6SfIfd4 VJFvrVTl2oNsWky9RS74vRfGEkc2H9R3UrwRRyD1Sv2PpZOpyKJKru621qHw1kv/ +aPOIxHEty7nTu87lQJZ1RwRX7rmwYwqlPChOoL6hLD4KM1fkcsihbGqSr/3pMqz EKbgDXH/dFyvvnrWghAoTkEkjujmmQ== =8zp0 -----END PGP SIGNATURE----- --gewgcxuilb6kaoqd--