ACK: [PATCH] lib: fwts_acpid: remove re-assignment of ptr to NULL
ivanhu
ivan.hu at canonical.com
Thu Feb 2 04:44:55 UTC 2017
On 2017年01月24日 20:20, Colin King wrote:
> From: Colin Ian King <colin.king at canonical.com>
>
> ptr is already initialized to NULL, so remove 2nd redundant
> reassignment to NULL
>
> Signed-off-by: Colin Ian King <colin.king at canonical.com>
> ---
> src/lib/src/fwts_acpid.c | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/src/lib/src/fwts_acpid.c b/src/lib/src/fwts_acpid.c
> index a5cb77a..4224fb4 100644
> --- a/src/lib/src/fwts_acpid.c
> +++ b/src/lib/src/fwts_acpid.c
> @@ -84,8 +84,6 @@ char *fwts_acpi_event_read(const int fd, size_t *length, const int timeout)
> size_t size = 0;
> *length = 0;
>
> - ptr = NULL;
> -
> tv.tv_sec = timeout;
> tv.tv_usec = 0;
> FD_ZERO(&rfds);
>
Acked-by: Ivan Hu <ivan.hu at canonical.com>
More information about the fwts-devel
mailing list