staging: unisys: visorbus: Fix extraneous parenthesis
Clean up unneeded () that are being reported by checkpatch. Signed-off-by: David Kershner <david.kershner@unisys.com> Reviewed-by: Tim Sell <timothy.sell@unisys.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
b5b46dd7b5
commit
614b083d70
|
@ -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_busdev *id = data;
|
||||
|
||||
if ((vdev->chipset_bus_no == id->bus_no) &&
|
||||
(vdev->chipset_dev_no == id->dev_no))
|
||||
if (vdev->chipset_bus_no == id->bus_no &&
|
||||
vdev->chipset_dev_no == id->dev_no)
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -463,7 +463,7 @@ static int visorbus_create(struct controlvm_message *inmsg)
|
|||
int err;
|
||||
|
||||
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,
|
||||
"failed %s: already exists\n", __func__);
|
||||
err = -EEXIST;
|
||||
|
@ -666,7 +666,7 @@ static int visorbus_device_create(struct controlvm_message *inmsg)
|
|||
goto err_respond;
|
||||
}
|
||||
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,
|
||||
"failed to get bus by id: %d/%d\n", bus_no, dev_no);
|
||||
err = -EEXIST;
|
||||
|
|
Loading…
Reference in New Issue