We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 819c0c3 commit e23593eCopy full SHA for e23593e
drivers/usb/dwc3/dwc3-xilinx.c
@@ -285,11 +285,8 @@ static int dwc3_xlnx_probe(struct platform_device *pdev)
285
return -ENOMEM;
286
287
regs = devm_platform_ioremap_resource(pdev, 0);
288
- if (IS_ERR(regs)) {
289
- ret = PTR_ERR(regs);
290
- dev_err_probe(dev, ret, "failed to map registers\n");
291
- return ret;
292
- }
+ if (IS_ERR(regs))
+ return dev_err_probe(dev, PTR_ERR(regs), "failed to map registers\n");
293
294
match = of_match_node(dwc3_xlnx_of_match, pdev->dev.of_node);
295
0 commit comments