iio: imu: inv_mpu6050: Remove unnecessary parentheses
authorDaniel Baluta <daniel.baluta@intel.com>
Thu, 18 Feb 2016 15:53:09 +0000 (17:53 +0200)
committerJonathan Cameron <jic23@kernel.org>
Wed, 24 Feb 2016 20:40:43 +0000 (20:40 +0000)
Fixes the following checkpatch warning:
CHECK: Unnecessary parentheses around cpm->package.elements[i]

Signed-off-by: Daniel Baluta <daniel.baluta@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/imu/inv_mpu6050/inv_mpu_acpi.c

index 231a7afe14c3335f55aa06839a80e2b0fda40d7e..2771106fd65090d502c2a8800ed646e4ba867152 100644 (file)
@@ -66,11 +66,11 @@ static int asus_acpi_get_sensor_info(struct acpi_device *adev,
                union acpi_object *elem;
                int j;
 
-               elem = &(cpm->package.elements[i]);
+               elem = &cpm->package.elements[i];
                for (j = 0; j < elem->package.count; ++j) {
                        union acpi_object *sub_elem;
 
-                       sub_elem = &(elem->package.elements[j]);
+                       sub_elem = &elem->package.elements[j];
                        if (sub_elem->type == ACPI_TYPE_STRING)
                                strlcpy(info->type, sub_elem->string.pointer,
                                        sizeof(info->type));