[PATCH 3/3] staging: ozwpan: Remove redundant null check before kfree in ozhcd.c
Sachin Kamat
sachin.kamat at linaro.org
Tue Nov 20 11:40:10 UTC 2012
kfree on NULL pointer is a no-op.
Signed-off-by: Sachin Kamat <sachin.kamat at linaro.org>
---
drivers/staging/ozwpan/ozhcd.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/drivers/staging/ozwpan/ozhcd.c b/drivers/staging/ozwpan/ozhcd.c
index 33c0009..b2d77df 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);
}
}
/*------------------------------------------------------------------------------
--
1.7.4.1
More information about the devel
mailing list