From e9e56da405aa099d6868f68bdec576f857ff89d6 Mon Sep 17 00:00:00 2001 From: Bartosz Golaszewski Date: Mon, 30 Jul 2018 14:49:17 +0200 Subject: [PATCH] bindings: python: remove a redundant if We don't need to check if bulk is NULL in gpiod_Chip_find_lines() before returning it. Signed-off-by: Bartosz Golaszewski --- bindings/python/gpiodmodule.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/bindings/python/gpiodmodule.c b/bindings/python/gpiodmodule.c index 8e576a9..3978490 100644 --- a/bindings/python/gpiodmodule.c +++ b/bindings/python/gpiodmodule.c @@ -1663,9 +1663,6 @@ gpiod_Chip_find_lines(gpiod_ChipObject *self, PyObject *args) bulk = gpiod_ListToLineBulk(lines); Py_DECREF(lines); - if (!bulk) - return NULL; - return bulk; } -- 2.30.2