Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bf359dff authored by Thomas Pugliese's avatar Thomas Pugliese Committed by Greg Kroah-Hartman
Browse files

uwb: use uwb_rsv_callback instead of calling rsv->callback directly



Use uwb_rsv_callback wrapper instead of calling rsv->callback directly.
uwb_rsv_callback checks for NULL and is used by other callers of the
callback routine.

Signed-off-by: default avatarThomas Pugliese <thomas.pugliese@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 67d0fb25
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -919,7 +919,7 @@ static void uwb_rsv_alien_bp_work(struct work_struct *work)


	list_for_each_entry(rsv, &rc->reservations, rc_node) {
	list_for_each_entry(rsv, &rc->reservations, rc_node) {
		if (rsv->type != UWB_DRP_TYPE_ALIEN_BP) {
		if (rsv->type != UWB_DRP_TYPE_ALIEN_BP) {
			rsv->callback(rsv);
			uwb_rsv_callback(rsv);
		}
		}
	}
	}