Commit 0e791375 authored by Daniel Baluta's avatar Daniel Baluta Committed by Jonathan Cameron

iio: imu: inv_mpu6050: Remove unnecessary parentheses

Fixes the following checkpatch warning:
CHECK: Unnecessary parentheses around cpm->package.elements[i]
Signed-off-by: default avatarDaniel Baluta <daniel.baluta@intel.com>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent d92241a0
...@@ -66,11 +66,11 @@ static int asus_acpi_get_sensor_info(struct acpi_device *adev, ...@@ -66,11 +66,11 @@ static int asus_acpi_get_sensor_info(struct acpi_device *adev,
union acpi_object *elem; union acpi_object *elem;
int j; int j;
elem = &(cpm->package.elements[i]); elem = &cpm->package.elements[i];
for (j = 0; j < elem->package.count; ++j) { for (j = 0; j < elem->package.count; ++j) {
union acpi_object *sub_elem; union acpi_object *sub_elem;
sub_elem = &(elem->package.elements[j]); sub_elem = &elem->package.elements[j];
if (sub_elem->type == ACPI_TYPE_STRING) if (sub_elem->type == ACPI_TYPE_STRING)
strlcpy(info->type, sub_elem->string.pointer, strlcpy(info->type, sub_elem->string.pointer,
sizeof(info->type)); sizeof(info->type));
......
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