Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 32adeab3 authored by YueHaibing's avatar YueHaibing Committed by Greg Kroah-Hartman
Browse files

usb: phy: mv-usb: Remove set but not used variable 'phy'



Fixes gcc '-Wunused-but-set-variable' warning:

drivers/usb/phy/phy-mv-usb.c: In function mv_otg_work:
drivers/usb/phy/phy-mv-usb.c:404:18: warning: variable phy set but not used [-Wunused-but-set-variable]

It's no used since commit e47d9254 ("usb: move
the OTG state from the USB PHY to the OTG structure")

Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 8e4c5d31
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -401,7 +401,6 @@ static void mv_otg_update_state(struct mv_otg *mvotg)
static void mv_otg_work(struct work_struct *work)
{
	struct mv_otg *mvotg;
	struct usb_phy *phy;
	struct usb_otg *otg;
	int old_state;

@@ -409,7 +408,6 @@ static void mv_otg_work(struct work_struct *work)

run:
	/* work queue is single thread, or we need spin_lock to protect */
	phy = &mvotg->phy;
	otg = mvotg->phy.otg;
	old_state = otg->state;