From a48d7b65fe82e7485ad6b0849a5005b9146c6fc9 Mon Sep 17 00:00:00 2001 From: Bartosz Golaszewski Date: Thu, 28 Feb 2019 15:28:50 +0100 Subject: [PATCH] core: drop an unnecessary pointer assignment The whole line structure is zeroed in the line above, so there's no need to set the fd_handle pointer to NULL. Signed-off-by: Bartosz Golaszewski --- src/lib/core.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/lib/core.c b/src/lib/core.c index 347f92b..05e5a46 100644 --- a/src/lib/core.c +++ b/src/lib/core.c @@ -259,7 +259,6 @@ gpiod_chip_get_line(struct gpiod_chip *chip, unsigned int offset) return NULL; memset(line, 0, sizeof(*line)); - line->fd_handle = NULL; line->offset = offset; line->chip = chip; -- 2.30.2