From: Bartosz Golaszewski Date: Thu, 28 Feb 2019 14:28:50 +0000 (+0100) Subject: core: drop an unnecessary pointer assignment X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=a48d7b65fe82e7485ad6b0849a5005b9146c6fc9;p=qemu-gpiodev%2Flibgpiod.git 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 --- 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;