2022-07-10 05:08:07

by Jilin Yuan

[permalink] [raw]
Subject: [PATCH] acpi/acpica: fix repeated words in comments

Delete the redundant word 'is'.
Delete the redundant word 'a'.

Signed-off-by: Jilin Yuan <[email protected]>
---
drivers/acpi/acpica/exconvrt.c | 2 +-
drivers/acpi/acpica/nsprepkg.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/acpi/acpica/exconvrt.c b/drivers/acpi/acpica/exconvrt.c
index 8de5d47ad485..7a66a70fa974 100644
--- a/drivers/acpi/acpica/exconvrt.c
+++ b/drivers/acpi/acpica/exconvrt.c
@@ -446,7 +446,7 @@ acpi_ex_convert_to_string(union acpi_operand_object * obj_desc,
* Explicit conversion from the to_decimal_string ASL operator.
*
* From ACPI: "If the input is a buffer, it is converted to a
- * a string of decimal values separated by commas."
+ * string of decimal values separated by commas."
*/
base = 10;

diff --git a/drivers/acpi/acpica/nsprepkg.c b/drivers/acpi/acpica/nsprepkg.c
index 82932c9a774b..2afc5baa325c 100644
--- a/drivers/acpi/acpica/nsprepkg.c
+++ b/drivers/acpi/acpica/nsprepkg.c
@@ -540,7 +540,7 @@ acpi_ns_check_package_list(struct acpi_evaluate_info *info,

/*
* Make sure package is large enough for the Count and is
- * is as large as the minimum size
+ * as large as the minimum size
*/
expected_count = (u32)(*sub_elements)->integer.value;
if (sub_package->package.count < expected_count) {
--
2.36.1


2022-07-13 17:04:33

by Wysocki, Rafael J

[permalink] [raw]
Subject: Re: [PATCH] acpi/acpica: fix repeated words in comments

On 7/10/2022 6:52 AM, Jilin Yuan wrote:
> Delete the redundant word 'is'.
> Delete the redundant word 'a'.
>
> Signed-off-by: Jilin Yuan <[email protected]>

Please note that proposed ACPICA changes need to be submitted to the
upstream ACPICA project on github.

If your change proposal is suitable for that code base, please submit a
pull request for it in there.


> ---
> drivers/acpi/acpica/exconvrt.c | 2 +-
> drivers/acpi/acpica/nsprepkg.c | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/acpi/acpica/exconvrt.c b/drivers/acpi/acpica/exconvrt.c
> index 8de5d47ad485..7a66a70fa974 100644
> --- a/drivers/acpi/acpica/exconvrt.c
> +++ b/drivers/acpi/acpica/exconvrt.c
> @@ -446,7 +446,7 @@ acpi_ex_convert_to_string(union acpi_operand_object * obj_desc,
> * Explicit conversion from the to_decimal_string ASL operator.
> *
> * From ACPI: "If the input is a buffer, it is converted to a
> - * a string of decimal values separated by commas."
> + * string of decimal values separated by commas."
> */
> base = 10;
>
> diff --git a/drivers/acpi/acpica/nsprepkg.c b/drivers/acpi/acpica/nsprepkg.c
> index 82932c9a774b..2afc5baa325c 100644
> --- a/drivers/acpi/acpica/nsprepkg.c
> +++ b/drivers/acpi/acpica/nsprepkg.c
> @@ -540,7 +540,7 @@ acpi_ns_check_package_list(struct acpi_evaluate_info *info,
>
> /*
> * Make sure package is large enough for the Count and is
> - * is as large as the minimum size
> + * as large as the minimum size
> */
> expected_count = (u32)(*sub_elements)->integer.value;
> if (sub_package->package.count < expected_count) {