Skip to content

Commit

Permalink
usb: phy: mv-usb: Remove set but not used variable 'phy'
Browse files Browse the repository at this point in the history
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 e47d925 ("usb: move
the OTG state from the USB PHY to the OTG structure")

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
YueHaibing authored and Greg Kroah-Hartman committed Jun 3, 2019
1 parent 8e4c5d3 commit 32adeab
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/usb/phy/phy-mv-usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -401,15 +401,13 @@ 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;

mvotg = container_of(to_delayed_work(work), struct mv_otg, 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;

Expand Down

0 comments on commit 32adeab

Please sign in to comment.