]> Pileus Git - ~andy/linux/commitdiff
uwb: use uwb_rsv_callback instead of calling rsv->callback directly
authorThomas Pugliese <thomas.pugliese@gmail.com>
Fri, 20 Dec 2013 17:54:09 +0000 (11:54 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 20 Dec 2013 20:19:13 +0000 (12:19 -0800)
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: Thomas Pugliese <thomas.pugliese@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/uwb/rsv.c

index 4e7e4bf7542e1f533d66264ba6e93950ec0c97f3..3fe611941046b6b5110558b42172c07adc02524c 100644 (file)
@@ -919,7 +919,7 @@ static void uwb_rsv_alien_bp_work(struct work_struct *work)
 
        list_for_each_entry(rsv, &rc->reservations, rc_node) {
                if (rsv->type != UWB_DRP_TYPE_ALIEN_BP) {
-                       rsv->callback(rsv);
+                       uwb_rsv_callback(rsv);
                }
        }