Skip to content

Commit

Permalink
[S390] sclp: remove unnecessary sendmask check
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Heiko Carstens authored and Martin Schwidefsky committed May 23, 2011
1 parent 0f1959f commit 1b60f68
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions drivers/s390/char/sclp_config.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

0 comments on commit 1b60f68

Please sign in to comment.