From: Bartosz Golaszewski Date: Mon, 30 Jul 2018 12:49:17 +0000 (+0200) Subject: bindings: python: remove a redundant if X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=e9e56da405aa099d6868f68bdec576f857ff89d6;p=qemu-gpiodev%2Flibgpiod.git 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 --- 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; }