From: Bartosz Golaszewski Date: Sat, 1 Jul 2017 08:56:06 +0000 (+0200) Subject: line: remove an unnecessary check X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=5d80befa539699580383b7e24cf93a826dea6081;p=qemu-gpiodev%2Flibgpiod.git line: remove an unnecessary check We have changed the way line objects are allocated. This check is no longer needed. Signed-off-by: Bartosz Golaszewski --- diff --git a/src/lib/line.c b/src/lib/line.c index aae6cff..0f60cca 100644 --- a/src/lib/line.c +++ b/src/lib/line.c @@ -408,12 +408,6 @@ void gpiod_line_release_bulk(struct gpiod_line_bulk *bulk) close(line_get_event_fd(line)); line_set_state(line, LINE_FREE); - /* - * FIXME This is a temporary check before we add a better way - * to determine whether a line object is valid. - */ - if (line->chip) - line_maybe_update(line); } }