[S390] sclp: remove unnecessary sendmask check
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Mon, 23 May 2011 08:24:37 +0000 (10:24 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 23 May 2011 08:24:31 +0000 (10:24 +0200)
The sendmask check is not needed. Remove it.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/char/sclp_config.c

index 16e232a99fb7f09150f9e6ecac15c171bc9575f1..95b909ac2b73bf4359b4ea1903db8a817d802e18 100644 (file)
@@ -71,21 +71,9 @@ static struct sclp_register sclp_conf_register =
 
 static int __init sclp_conf_init(void)
 {
-       int rc;
-
        INIT_WORK(&sclp_cpu_capability_work, sclp_cpu_capability_notify);
        INIT_WORK(&sclp_cpu_change_work, sclp_cpu_change_notify);
-
-       rc = sclp_register(&sclp_conf_register);
-       if (rc)
-               return rc;
-
-       if (!(sclp_conf_register.sclp_send_mask & EVTYP_CONFMGMDATA_MASK)) {
-               pr_warning("no configuration management.\n");
-               sclp_unregister(&sclp_conf_register);
-               rc = -ENOSYS;
-       }
-       return rc;
+       return sclp_register(&sclp_conf_register);
 }
 
 __initcall(sclp_conf_init);