Commit 614b083d authored by David Kershner's avatar David Kershner Committed by Greg Kroah-Hartman

staging: unisys: visorbus: Fix extraneous parenthesis

Clean up unneeded () that are being reported by checkpatch.
Signed-off-by: default avatarDavid Kershner <david.kershner@unisys.com>
Reviewed-by: default avatarTim Sell <timothy.sell@unisys.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b5b46dd7
...@@ -185,8 +185,8 @@ static int match_visorbus_dev_by_id(struct device *dev, void *data) ...@@ -185,8 +185,8 @@ static int match_visorbus_dev_by_id(struct device *dev, void *data)
struct visor_device *vdev = to_visor_device(dev); struct visor_device *vdev = to_visor_device(dev);
struct visor_busdev *id = data; struct visor_busdev *id = data;
if ((vdev->chipset_bus_no == id->bus_no) && if (vdev->chipset_bus_no == id->bus_no &&
(vdev->chipset_dev_no == id->dev_no)) vdev->chipset_dev_no == id->dev_no)
return 1; return 1;
return 0; return 0;
} }
......
...@@ -463,7 +463,7 @@ static int visorbus_create(struct controlvm_message *inmsg) ...@@ -463,7 +463,7 @@ static int visorbus_create(struct controlvm_message *inmsg)
int err; int err;
bus_info = visorbus_get_device_by_id(bus_no, BUS_ROOT_DEVICE, NULL); bus_info = visorbus_get_device_by_id(bus_no, BUS_ROOT_DEVICE, NULL);
if (bus_info && (bus_info->state.created == 1)) { if (bus_info && bus_info->state.created == 1) {
dev_err(&chipset_dev->acpi_device->dev, dev_err(&chipset_dev->acpi_device->dev,
"failed %s: already exists\n", __func__); "failed %s: already exists\n", __func__);
err = -EEXIST; err = -EEXIST;
...@@ -666,7 +666,7 @@ static int visorbus_device_create(struct controlvm_message *inmsg) ...@@ -666,7 +666,7 @@ static int visorbus_device_create(struct controlvm_message *inmsg)
goto err_respond; goto err_respond;
} }
dev_info = visorbus_get_device_by_id(bus_no, dev_no, NULL); dev_info = visorbus_get_device_by_id(bus_no, dev_no, NULL);
if (dev_info && (dev_info->state.created == 1)) { if (dev_info && dev_info->state.created == 1) {
dev_err(&chipset_dev->acpi_device->dev, dev_err(&chipset_dev->acpi_device->dev,
"failed to get bus by id: %d/%d\n", bus_no, dev_no); "failed to get bus by id: %d/%d\n", bus_no, dev_no);
err = -EEXIST; err = -EEXIST;
......
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