Skip to content

Commit 09806eb

Browse files
Tang Bingregkh
authored andcommitted
USB: EHCI: ehci-mv: Fix unused assignment in mv_ehci_probe()
Delete unused initialized value, because 'retval' will be assigined by the function mv_ehci_enable(). And delete the extra blank lines. Signed-off-by: Zhang Shengju <[email protected]> Signed-off-by: Tang Bin <[email protected]> Acked-by: Alan Stern <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 1551872 commit 09806eb

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/usb/host/ehci-mv.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ static int mv_ehci_probe(struct platform_device *pdev)
108108
struct ehci_hcd *ehci;
109109
struct ehci_hcd_mv *ehci_mv;
110110
struct resource *r;
111-
int retval = -ENODEV;
111+
int retval;
112112
u32 offset;
113113
u32 status;
114114

@@ -143,8 +143,6 @@ static int mv_ehci_probe(struct platform_device *pdev)
143143
goto err_put_hcd;
144144
}
145145

146-
147-
148146
r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
149147
ehci_mv->base = devm_ioremap_resource(&pdev->dev, r);
150148
if (IS_ERR(ehci_mv->base)) {

0 commit comments

Comments
 (0)