Skip to content

Commit

Permalink
ACPI: toshiba_acpi: Use ARRAY_SIZE macro when appropriate
Browse files Browse the repository at this point in the history
Use ARRAY_SIZE macro already defined in kernel.h

Signed-off-by: Ahmed S. Darwish <darwish.07@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Len Brown <len.brown@intel.com>
  • Loading branch information
Ahmed S. Darwish authored and Len Brown committed Feb 9, 2007
1 parent d94d3df commit b2b7910
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/acpi/toshiba_acpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ static int write_acpi_int(const char *methodName, int val)
union acpi_object in_objs[1];
acpi_status status;

params.count = sizeof(in_objs) / sizeof(in_objs[0]);
params.count = ARRAY_SIZE(in_objs);
params.pointer = in_objs;
in_objs[0].type = ACPI_TYPE_INTEGER;
in_objs[0].integer.value = val;
Expand Down

0 comments on commit b2b7910

Please sign in to comment.