iio: imu: inv_mpu6050: Remove unnecessary parentheses
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>
This commit is contained in:
parent
d92241a0dc
commit
0e79137531
|
@ -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));
|
||||||
|
|
Loading…
Reference in New Issue