diff options
author | Colin Ian King <colin.king@canonical.com> | 2021-03-26 19:13:57 +0000 |
---|---|---|
committer | Peter Chen <peter.chen@kernel.org> | 2021-04-12 20:19:22 +0800 |
commit | 9ecc3eb03c37b54c507ba5127a4c781d36b0c121 (patch) | |
tree | a8a047264852f90fa60a3023fecd7bc6e8e3144d /drivers/usb | |
parent | 8079ebf5ff51503574b5e6fd8d141de80032d761 (diff) | |
download | linux-9ecc3eb03c37b54c507ba5127a4c781d36b0c121.tar.gz linux-9ecc3eb03c37b54c507ba5127a4c781d36b0c121.tar.bz2 linux-9ecc3eb03c37b54c507ba5127a4c781d36b0c121.zip |
usb: cdnsp: remove redundant initialization of variable ret
The variable ret is being initialized with a value that is
never read and it is being updated later with a new value. The
initialization is redundant and can be removed.
Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Pawel Laszczak <pawell@cadence.com>
Signed-off-by: Peter Chen <peter.chen@kernel.org>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/cdns3/cdnsp-mem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/cdns3/cdnsp-mem.c b/drivers/usb/cdns3/cdnsp-mem.c index 1d1b9a429d4c..5d4c4bfe15b7 100644 --- a/drivers/usb/cdns3/cdnsp-mem.c +++ b/drivers/usb/cdns3/cdnsp-mem.c @@ -686,7 +686,7 @@ static void cdnsp_free_priv_device(struct cdnsp_device *pdev) static int cdnsp_alloc_priv_device(struct cdnsp_device *pdev) { - int ret = -ENOMEM; + int ret; ret = cdnsp_init_device_ctx(pdev); if (ret) |