summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorHendrik Brueckner <brueckner@linux.vnet.ibm.com>2013-10-25 16:01:04 +0200
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2013-10-28 08:36:29 +0100
commitac526f42abdae2cdc3ae1a24c855f731e1a90232 (patch)
tree33973f3c6065461eea38f6c5979ab3f370a5bedc /drivers
parentc81a90c853f183a8946af77ed9272ac61d78c077 (diff)
downloadtalos-obmc-linux-ac526f42abdae2cdc3ae1a24c855f731e1a90232.tar.gz
talos-obmc-linux-ac526f42abdae2cdc3ae1a24c855f731e1a90232.zip
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 <brueckner@linux.vnet.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/tty/hvc/hvc_iucv.c3
1 files changed, 1 insertions, 2 deletions
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;
}
OpenPOWER on IntegriCloud