summaryrefslogtreecommitdiff
path: root/drivers/s390/cio/chsc_sch.c
diff options
context:
space:
mode:
authorMarkus Elfring <elfring@users.sourceforge.net>2015-11-16 13:45:40 (GMT)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2015-11-27 08:24:16 (GMT)
commita6e975c5f8fd8652fc5ab754236ec155a228d452 (patch)
treee8b2f018da3b7fadda483f5f606235c293a17e38 /drivers/s390/cio/chsc_sch.c
parent69eea95c48857c9dfcac120d6acea43027627b28 (diff)
downloadlinux-a6e975c5f8fd8652fc5ab754236ec155a228d452.tar.xz
s390: Delete unnecessary checks before the function call "debug_unregister"
The debug_unregister() function performs also input parameter validation. Thus the test around the calls is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring <elfring@users.sourceforge.net> Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'drivers/s390/cio/chsc_sch.c')
-rw-r--r--drivers/s390/cio/chsc_sch.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/s390/cio/chsc_sch.c b/drivers/s390/cio/chsc_sch.c
index 213159d..378c571 100644
--- a/drivers/s390/cio/chsc_sch.c
+++ b/drivers/s390/cio/chsc_sch.c
@@ -185,8 +185,7 @@ static int __init chsc_init_dbfs(void)
debug_set_level(chsc_debug_log_id, 2);
return 0;
out:
- if (chsc_debug_msg_id)
- debug_unregister(chsc_debug_msg_id);
+ debug_unregister(chsc_debug_msg_id);
return -ENOMEM;
}