diff options
author | David Kershner <david.kershner@unisys.com> | 2017-09-27 13:14:48 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-09-28 11:20:22 +0200 |
commit | 614b083d70330398c6a0a6b0bacacfdd60284703 (patch) | |
tree | 3010afdc2775df67d0b4007a02ed257bd6ee4588 /drivers | |
parent | b5b46dd7b5879f2ede1e6e060a6da51cb136898d (diff) |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/unisys/visorbus/visorbus_main.c | 4 | ||||
-rw-r--r-- | drivers/staging/unisys/visorbus/visorchipset.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/staging/unisys/visorbus/visorbus_main.c b/drivers/staging/unisys/visorbus/visorbus_main.c index cc6a9d834f63..2f1e8d36aedf 100644 --- a/drivers/staging/unisys/visorbus/visorbus_main.c +++ b/drivers/staging/unisys/visorbus/visorbus_main.c @@ -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; } diff --git a/drivers/staging/unisys/visorbus/visorchipset.c b/drivers/staging/unisys/visorbus/visorchipset.c index 616560276bcb..d9045a4b7620 100644 --- a/drivers/staging/unisys/visorbus/visorchipset.c +++ b/drivers/staging/unisys/visorbus/visorchipset.c @@ -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; |