From: Colin Ian King Date: Mon, 16 Mar 2020 21:11:29 +0000 (-0500) Subject: usb: musb: remove redundant assignment to variable ret X-Git-Tag: rel_imx_5.10.35_2.0.0-somdevices.0~2577^2~25 X-Git-Url: https://git.somdevices.com/?a=commitdiff_plain;h=c87c27318c49d673e2a9cde3869424637364b609;p=linux.git usb: musb: remove redundant assignment to variable ret Variable ret is being initialized with a value that is never read, it is assigned a new value later on. The assignment is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King Signed-off-by: Bin Liu Link: https://lore.kernel.org/r/20200316211136.2274-2-b-liu@ti.com Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/musb/mediatek.c b/drivers/usb/musb/mediatek.c index a627f4133d6b..6196b0e8d77d 100644 --- a/drivers/usb/musb/mediatek.c +++ b/drivers/usb/musb/mediatek.c @@ -448,7 +448,7 @@ static int mtk_musb_probe(struct platform_device *pdev) struct platform_device_info pinfo; struct device *dev = &pdev->dev; struct device_node *np = dev->of_node; - int ret = -ENOMEM; + int ret; glue = devm_kzalloc(dev, sizeof(*glue), GFP_KERNEL); if (!glue)