libubus: use list_empty/list_first_entry in ubus_process_pending_msg
authorFelix Fietkau <nbd@nbd.name>
Mon, 9 Aug 2021 10:49:34 +0000 (12:49 +0200)
committerFelix Fietkau <nbd@nbd.name>
Wed, 8 Sep 2021 10:25:31 +0000 (12:25 +0200)
commit2099bb3ad9972c6188c38fd885ae74f3323fcacc
tree4bca2c2fa40f8e77e7f1ecbac93214ca272e1c9f
parentb743a331421dc13dc99dabb3f102c58889a194d2
libubus: use list_empty/list_first_entry in ubus_process_pending_msg

Simplifies checks and avoids potential list corruption on recursive calls

Signed-off-by: Felix Fietkau <nbd@nbd.name>
libubus.c