usb: mtu3: fix dbginfo in qmu_tx_zlp_error_handler
authorYueHaibing <yuehaibing@huawei.com>
Fri, 7 Dec 2018 03:52:43 +0000 (03:52 +0000)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Fri, 7 Dec 2018 05:58:28 +0000 (07:58 +0200)
Fixes gcc '-Wunused-but-set-variable' warning:

drivers/usb/mtu3/mtu3_qmu.c: In function 'qmu_tx_zlp_error_handler':
drivers/usb/mtu3/mtu3_qmu.c:385:22: warning:
 variable 'req' set but not used [-Wunused-but-set-variable]

It seems dbginfo original intention is print 'req' other than 'mreq'

Acked-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/mtu3/mtu3_qmu.c

index 73ac042c45a8fafbb8f9867a8baf277181e57ee1..09f19f70fe8f8da90a9def2a2d895821b919bd08 100644 (file)
@@ -402,7 +402,7 @@ static void qmu_tx_zlp_error_handler(struct mtu3 *mtu, u8 epnum)
                return;
        }
 
-       dev_dbg(mtu->dev, "%s send ZLP for req=%p\n", __func__, mreq);
+       dev_dbg(mtu->dev, "%s send ZLP for req=%p\n", __func__, req);
 
        mtu3_clrbits(mbase, MU3D_EP_TXCR0(mep->epnum), TX_DMAREQEN);