ACK: [PATCH] lib/src/fwts_acpi_tables: remove shadowed pointer ptr

ivanhu ivan.hu at canonical.com
Thu Aug 16 09:10:40 UTC 2018



On 08/15/2018 05:57 PM, Colin King wrote:
> From: Colin Ian King <colin.king at canonical.com>
>
> Pointer 'ptr' can be removed as it is a shadow of a previously
> declared pointer with the same name and we don't need another
> copy of one of the same name.
>
> Signed-off-by: Colin Ian King <colin.king at canonical.com>
> ---
>  src/lib/src/fwts_acpi_tables.c | 1 -
>  1 file changed, 1 deletion(-)
>
> diff --git a/src/lib/src/fwts_acpi_tables.c b/src/lib/src/fwts_acpi_tables.c
> index f28ed60a..ccf0a7b1 100644
> --- a/src/lib/src/fwts_acpi_tables.c
> +++ b/src/lib/src/fwts_acpi_tables.c
> @@ -595,7 +595,6 @@ static uint8_t *fwts_acpi_load_table_from_acpidump(
>  	 */
>  	while (fgets(buffer, sizeof(buffer), fp) ) {
>  		uint8_t *new_tmp;
> -		char *ptr;
>  		int n;
>  
>  		/* Get offset */

Acked-by: Ivan Hu <ivan.hu at canonical.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/fwts-devel/attachments/20180816/65e3c96e/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ubuntu.com/archives/fwts-devel/attachments/20180816/65e3c96e/attachment.sig>


More information about the fwts-devel mailing list