diff options
author | Pawel Laszczak <pawell@cadence.com> | 2022-01-11 12:44:49 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-01-26 13:59:23 +0100 |
commit | 0bf6f14585c8ffbe9eb9a32d5133486bfdc38796 (patch) | |
tree | 69b754a3deb518f98a5ff644484d057b8c99eadb /drivers/usb/cdns3 | |
parent | usb: cdnsp: fix cdnsp_decode_trb function to properly handle ret value (diff) | |
download | linux-0bf6f14585c8ffbe9eb9a32d5133486bfdc38796.tar.xz linux-0bf6f14585c8ffbe9eb9a32d5133486bfdc38796.zip |
usb: cdnsp: remove not used temp_64 variables
Patch removes initialized but not used variables temp_64
from cdnsp_run function.
Reported-by: kernel test robot <lkp@intel.com>
Reviewed-by: Peter Chen <peter.chen@kernel.org>
Signed-off-by: Pawel Laszczak <pawell@cadence.com>
Link: https://lore.kernel.org/r/20220111114449.44402-1-pawell@gli-login.cadence.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/cdns3')
-rw-r--r-- | drivers/usb/cdns3/cdnsp-gadget.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/usb/cdns3/cdnsp-gadget.c b/drivers/usb/cdns3/cdnsp-gadget.c index 5c9d07cc5410..c67715f6f756 100644 --- a/drivers/usb/cdns3/cdnsp-gadget.c +++ b/drivers/usb/cdns3/cdnsp-gadget.c @@ -1243,12 +1243,9 @@ static int cdnsp_run(struct cdnsp_device *pdev, enum usb_device_speed speed) { u32 fs_speed = 0; - u64 temp_64; u32 temp; int ret; - temp_64 = cdnsp_read_64(&pdev->ir_set->erst_dequeue); - temp_64 &= ~ERST_PTR_MASK; temp = readl(&pdev->ir_set->irq_control); temp &= ~IMOD_INTERVAL_MASK; temp |= ((IMOD_DEFAULT_INTERVAL / 250) & IMOD_INTERVAL_MASK); |