Commit 1086ca3a authored by Dan Carpenter's avatar Dan Carpenter Committed by David S. Miller

net: phy: sfp: clean up a condition

The acpi_node_get_property_reference() doesn't return ACPI error codes,
it just returns regular negative kernel error codes.  This patch doesn't
affect run time, it's just a clean up.
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: default avatarRuslan Babayev <ruslan@babayev.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d5afa82c
......@@ -1848,7 +1848,7 @@ static int sfp_probe(struct platform_device *pdev)
int ret;
ret = acpi_node_get_property_reference(fw, "i2c-bus", 0, &args);
if (ACPI_FAILURE(ret) || !is_acpi_device_node(args.fwnode)) {
if (ret || !is_acpi_device_node(args.fwnode)) {
dev_err(&pdev->dev, "missing 'i2c-bus' property\n");
return -ENODEV;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment