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>
This commit is contained in:
Colin Ian King 2021-03-26 19:13:57 +00:00 committed by Peter Chen
parent 8079ebf5ff
commit 9ecc3eb03c
No known key found for this signature in database
GPG Key ID: 4859298150D671BB

View File

@ -686,7 +686,7 @@ static void cdnsp_free_priv_device(struct cdnsp_device *pdev)
static int cdnsp_alloc_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); ret = cdnsp_init_device_ctx(pdev);
if (ret) if (ret)