diff options
author | Richard Braun <rbraun@sceen.net> | 2017-09-03 15:50:48 +0200 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2017-09-03 15:50:48 +0200 |
commit | c69071d2d7b875e16e65b044d1b38995202c1937 (patch) | |
tree | fb27252b7b48d390c6d3ea53bd50bdf0a1ab522b | |
parent | d568619214a94ea0bb1587c597d914495269b1f2 (diff) |
Minor style fix
Replace the single use of array as function argument with a pointer, as
described in the coding rules.
-rw-r--r-- | arch/x86/machine/acpi.c | 2 | ||||
-rw-r--r-- | doc/style.9.txt | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/arch/x86/machine/acpi.c b/arch/x86/machine/acpi.c index 4ef52e3d..f088f2c8 100644 --- a/arch/x86/machine/acpi.c +++ b/arch/x86/machine/acpi.c @@ -186,7 +186,7 @@ static struct acpi_gas acpi_reset_reg; static uint8_t acpi_reset_value; static void __init -acpi_table_sig(const struct acpi_sdth *table, char sig[ACPI_SIG_SIZE]) +acpi_table_sig(const struct acpi_sdth *table, char *sig) { memcpy(sig, table->signature, sizeof(table->signature)); sig[4] = '\0'; diff --git a/doc/style.9.txt b/doc/style.9.txt index c4a57780..be59024f 100644 --- a/doc/style.9.txt +++ b/doc/style.9.txt @@ -557,8 +557,6 @@ operator may be used safely to get the size of the array, when it actually always returns the size of a pointer. Therefore, declaring arguments as arrays is strictly forbidden. -TODO Fix historic array argument declarations. - GIT COMMITS ----------- |