From patchwork Tue Dec 21 17:15:32 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Prabhakar Mahadev Lad X-Patchwork-Id: 526786 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9B598C433F5 for ; Tue, 21 Dec 2021 17:15:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240253AbhLURPw (ORCPT ); Tue, 21 Dec 2021 12:15:52 -0500 Received: from relmlor1.renesas.com ([210.160.252.171]:54860 "EHLO relmlie5.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S240244AbhLURPv (ORCPT ); Tue, 21 Dec 2021 12:15:51 -0500 X-IronPort-AV: E=Sophos;i="5.88,224,1635174000"; d="scan'208";a="104254125" Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie5.idc.renesas.com with ESMTP; 22 Dec 2021 02:15:50 +0900 Received: from localhost.localdomain (unknown [10.226.36.204]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id 7721B40B8DE5; Wed, 22 Dec 2021 02:15:49 +0900 (JST) From: Lad Prabhakar To: Greg Kroah-Hartman , linux-usb@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Prabhakar , Lad Prabhakar Subject: [PATCH] usb: renesas_usbhs: Fix unused variable warning Date: Tue, 21 Dec 2021 17:15:32 +0000 Message-Id: <20211221171532.29881-1-prabhakar.mahadev-lad.rj@bp.renesas.com> X-Mailer: git-send-email 2.17.1 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org This patch fixes the below warning: drivers/usb/renesas_usbhs/mod.c: In function 'usbhs_status_get_each_irq': drivers/usb/renesas_usbhs/mod.c:195:13: warning: variable 'intenb0' set but not used [-Wunused-but-set-variable] 195 | u16 intenb0, intenb1; | Fixes: 33e4245ee919 ("usb: renesas_usbhs: Use platform_get_irq() to get the interrupt") Reported-by: kernel test robot Signed-off-by: Lad Prabhakar --- drivers/usb/renesas_usbhs/mod.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/usb/renesas_usbhs/mod.c b/drivers/usb/renesas_usbhs/mod.c index f2ea3e1412d2..3919e350b487 100644 --- a/drivers/usb/renesas_usbhs/mod.c +++ b/drivers/usb/renesas_usbhs/mod.c @@ -192,13 +192,12 @@ static int usbhs_status_get_each_irq(struct usbhs_priv *priv, struct usbhs_irq_state *state) { struct usbhs_mod *mod = usbhs_mod_get_current(priv); - u16 intenb0, intenb1; unsigned long flags; + u16 intenb1; /******************** spin lock ********************/ usbhs_lock(priv, flags); state->intsts0 = usbhs_read(priv, INTSTS0); - intenb0 = usbhs_read(priv, INTENB0); if (usbhs_mod_is_host(priv)) { state->intsts1 = usbhs_read(priv, INTSTS1);