Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ac526f42 authored by Hendrik Brueckner's avatar Hendrik Brueckner Committed by Martin Schwidefsky
Browse files

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: default avatarHendrik Brueckner <brueckner@linux.vnet.ibm.com>
Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
parent c81a90c8
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1354,7 +1354,6 @@ static int __init hvc_iucv_init(void)
	mempool_destroy(hvc_iucv_mempool);
	kmem_cache_destroy(hvc_iucv_buffer_cache);
out_error:
	if (hvc_iucv_filter)
	kfree(hvc_iucv_filter);
	hvc_iucv_devices = 0; /* ensure that we do not provide any device */
	return rc;