From 17957e0816b6af901bbd303134411f7ce136688b Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 15 Aug 2019 15:17:01 +0200 Subject: [PATCH] (Menu widgets) DO away with == NULL/!= NULL checks --- menu/widgets/menu_widgets.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/menu/widgets/menu_widgets.c b/menu/widgets/menu_widgets.c index ced02fae2f..c57e42325a 100644 --- a/menu/widgets/menu_widgets.c +++ b/menu/widgets/menu_widgets.c @@ -834,7 +834,7 @@ void menu_widgets_iterate(unsigned width, unsigned height) } /* Start expiration timer if not associated to a task */ - if (msg_widget->task_ptr == NULL) + if (!msg_widget->task_ptr) { menu_widgets_start_msg_expiration_timer(msg_widget, MSG_QUEUE_ANIMATION_DURATION*2 + msg_widget->duration); } @@ -858,7 +858,7 @@ void menu_widgets_iterate(unsigned width, unsigned height) if (!msg) continue; - if (msg->task_ptr != NULL && (msg->task_finished || msg->task_cancelled)) + if (msg->task_ptr && (msg->task_finished || msg->task_cancelled)) menu_widgets_start_msg_expiration_timer(msg, TASK_FINISHED_DURATION); if (msg->expired && !widgets_moving)