staging: ozwpan: Remove redundant null check before kfree in ozhcd.c
authorSachin Kamat <sachin.kamat@linaro.org>
Tue, 20 Nov 2012 11:40:10 +0000 (17:10 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 Nov 2012 21:50:12 +0000 (13:50 -0800)
kfree on NULL pointer is a no-op.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Rupesh Gujare <rgujare@ozmodevices.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ozwpan/ozhcd.c

index 33c0009..b2d77df 100644 (file)
@@ -278,8 +278,7 @@ static void oz_free_urb_link(struct oz_urb_link *urbl)
                        g_link_pool_size++;
                }
                spin_unlock_irqrestore(&g_link_lock, irq_state);
-               if (urbl)
-                       kfree(urbl);
+               kfree(urbl);
        }
 }
 /*------------------------------------------------------------------------------