summaryrefslogtreecommitdiffstats
path: root/drivers/acpi/utils.c
diff options
context:
space:
mode:
authorFabian Frederick <fabf@skynet.be>2014-11-16 10:57:00 +0100
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2014-11-18 02:01:27 +0100
commitd93de3455d0f04b1c5a60af41399b7f6f7b13c47 (patch)
treebba5173014d9ae2196f0fd7fe31a002b4a847a9b /drivers/acpi/utils.c
parentfc14f9c1272f62c3e8d01300f52467c0d9af50f9 (diff)
downloadtalos-op-linux-d93de3455d0f04b1c5a60af41399b7f6f7b13c47.tar.gz
talos-op-linux-d93de3455d0f04b1c5a60af41399b7f6f7b13c47.zip
ACPI: remove unnecessary sizeof(u8)
sizeof(u8) is always 1. Signed-off-by: Fabian Frederick <fabf@skynet.be> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/utils.c')
-rw-r--r--drivers/acpi/utils.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/acpi/utils.c b/drivers/acpi/utils.c
index 371ac12d25b1..dd8ff63ee2b4 100644
--- a/drivers/acpi/utils.c
+++ b/drivers/acpi/utils.c
@@ -136,8 +136,7 @@ acpi_extract_package(union acpi_object *package,
break;
case 'B':
size_required +=
- sizeof(u8 *) +
- (element->buffer.length * sizeof(u8));
+ sizeof(u8 *) + element->buffer.length;
tail_offset += sizeof(u8 *);
break;
default:
@@ -255,7 +254,7 @@ acpi_extract_package(union acpi_object *package,
memcpy(tail, element->buffer.pointer,
element->buffer.length);
head += sizeof(u8 *);
- tail += element->buffer.length * sizeof(u8);
+ tail += element->buffer.length;
break;
default:
/* Should never get here */
OpenPOWER on IntegriCloud