aboutsummaryrefslogtreecommitdiff
path: root/drivers/staging/ozwpan
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2012-11-20 17:10:09 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-11-21 13:50:12 -0800
commitba34efba7ab0eed43aca254738c0446af644fb15 (patch)
tree6ed20dfcdcd7f53567880344e44c2a24c2759643 /drivers/staging/ozwpan
parentb150718ecb6468d2de1ff593c402ec257dd80c8c (diff)
downloadlinaro-lsk-ba34efba7ab0eed43aca254738c0446af644fb15.tar.gz
staging: ozwpan: Remove redundant null check before kfree in ozproto.c
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>
Diffstat (limited to 'drivers/staging/ozwpan')
-rw-r--r--drivers/staging/ozwpan/ozproto.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/staging/ozwpan/ozproto.c b/drivers/staging/ozwpan/ozproto.c
index cfb5160d1eb..e00a53915da 100644
--- a/drivers/staging/ozwpan/ozproto.c
+++ b/drivers/staging/ozwpan/ozproto.c
@@ -566,8 +566,7 @@ static void oz_protocol_timer(unsigned long arg)
}
spin_unlock_bh(&g_polling_lock);
oz_pd_put(pd);
- if (t)
- kfree(t);
+ kfree(t);
t = t2;
} while (t);
g_timer_state = OZ_TIMER_IDLE;