staging: unisys: visorbus: Fix extraneous parenthesis
authorDavid Kershner <david.kershner@unisys.com>
Wed, 27 Sep 2017 17:14:48 +0000 (13:14 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Sep 2017 09:20:22 +0000 (11:20 +0200)
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>
drivers/staging/unisys/visorbus/visorbus_main.c
drivers/staging/unisys/visorbus/visorchipset.c

index cc6a9d834f63a669f317a8f34a60cb2f0b0e8778..2f1e8d36aedfdcf85f29eb96b7104a52343db8aa 100644 (file)
@@ -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;
 }
index 616560276bcbe4aac6b7a97288e73963b0f63279..d9045a4b76208639ac62b3ae7ed4cb59217ce920 100644 (file)
@@ -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;