Skip to content

Commit d9ff109

Browse files
tititiou36gregkh
authored andcommitted
usb: musb: Fix an error message
'ret' is known to be 0 here. Initialize 'ret' with the expected error code before using it. Fixes: 0990366 ("usb: musb: Add support for MediaTek musb controller") Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Link: https://lore.kernel.org/r/69f514dc7134e3c917cad208e73cc650cb9e2bd6.1620159879.git.christophe.jaillet@wanadoo.fr Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent f1fbd95 commit d9ff109

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/usb/musb/mediatek.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,8 +518,8 @@ static int mtk_musb_probe(struct platform_device *pdev)
518518

519519
glue->xceiv = devm_usb_get_phy(dev, USB_PHY_TYPE_USB2);
520520
if (IS_ERR(glue->xceiv)) {
521-
dev_err(dev, "fail to getting usb-phy %d\n", ret);
522521
ret = PTR_ERR(glue->xceiv);
522+
dev_err(dev, "fail to getting usb-phy %d\n", ret);
523523
goto err_unregister_usb_phy;
524524
}
525525

0 commit comments

Comments
 (0)