From: Matvejchikov Ilya Date: Tue, 12 Jul 2011 21:45:37 +0000 (+0000) Subject: slip: remove redundant NULL-pointer check before calling slhc_free X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=30c5f8ecf246997d16ba5b11becc5f10f9deaf7a;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git slip: remove redundant NULL-pointer check before calling slhc_free Signed-off-by: Matvejchikov Ilya Signed-off-by: David S. Miller --- diff --git a/drivers/net/slip.c b/drivers/net/slip.c index 8ec1a9a0bb9a..e8c4582d9561 100644 --- a/drivers/net/slip.c +++ b/drivers/net/slip.c @@ -194,8 +194,7 @@ static int sl_alloc_bufs(struct slip *sl, int mtu) err_exit: #ifdef SL_INCLUDE_CSLIP kfree(cbuff); - if (slcomp) - slhc_free(slcomp); + slhc_free(slcomp); #endif kfree(xbuff); kfree(rbuff);