From: Hendrik Brueckner Date: Fri, 25 Oct 2013 14:01:04 +0000 (+0200) Subject: tty/hvc_iucv: remove redundant NULL check X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=ac526f42abdae2cdc3ae1a24c855f731e1a90232;p=linux-beck.git tty/hvc_iucv: remove redundant NULL check Make smatch happy and remove this warning: drivers/tty/hvc/hvc_iucv.c:1320 hvc_iucv_init() info: redundant null check on hvc_iucv_filter calling kfree() Signed-off-by: Hendrik Brueckner Signed-off-by: Martin Schwidefsky --- diff --git a/drivers/tty/hvc/hvc_iucv.c b/drivers/tty/hvc/hvc_iucv.c index fd17a9b804b8..db19a38c8c69 100644 --- a/drivers/tty/hvc/hvc_iucv.c +++ b/drivers/tty/hvc/hvc_iucv.c @@ -1354,8 +1354,7 @@ out_error_memory: mempool_destroy(hvc_iucv_mempool); kmem_cache_destroy(hvc_iucv_buffer_cache); out_error: - if (hvc_iucv_filter) - kfree(hvc_iucv_filter); + kfree(hvc_iucv_filter); hvc_iucv_devices = 0; /* ensure that we do not provide any device */ return rc; }