From: Sachin Kamat Date: Tue, 20 Nov 2012 11:40:10 +0000 (+0530) Subject: staging: ozwpan: Remove redundant null check before kfree in ozhcd.c X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7010157b088b4748aff592321bee6ac8388e300f;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git staging: ozwpan: Remove redundant null check before kfree in ozhcd.c kfree on NULL pointer is a no-op. Signed-off-by: Sachin Kamat Signed-off-by: Rupesh Gujare Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/ozwpan/ozhcd.c b/drivers/staging/ozwpan/ozhcd.c index 33c0009b3082..b2d77df2a526 100644 --- a/drivers/staging/ozwpan/ozhcd.c +++ b/drivers/staging/ozwpan/ozhcd.c @@ -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); } } /*------------------------------------------------------------------------------