]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
usb: phy: mv-usb: Remove set but not used variable 'phy'
authorYueHaibing <yuehaibing@huawei.com>
Wed, 29 May 2019 15:09:39 +0000 (23:09 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 3 Jun 2019 13:21:57 +0000 (15:21 +0200)
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 e47d92545c29 ("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>
drivers/usb/phy/phy-mv-usb.c

index cfd9add10bf48f7a2f11f93d882c78912ff95c50..cf7ecdc9a9d4d72594c685a44c058a4751217dd3 100644 (file)
@@ -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;