diff options
| -rw-r--r-- | drivers/s390/net/smsgiucv.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/drivers/s390/net/smsgiucv.c b/drivers/s390/net/smsgiucv.c index 8735a415a116..164e090c2625 100644 --- a/drivers/s390/net/smsgiucv.c +++ b/drivers/s390/net/smsgiucv.c | |||
| @@ -156,11 +156,8 @@ static int __init smsg_init(void) | |||
| 156 | if (rc != 0) | 156 | if (rc != 0) |
| 157 | goto out; | 157 | goto out; |
| 158 | rc = iucv_register(&smsg_handler, 1); | 158 | rc = iucv_register(&smsg_handler, 1); |
| 159 | if (rc) { | 159 | if (rc) |
| 160 | printk(KERN_ERR "SMSGIUCV: failed to register to iucv"); | ||
| 161 | rc = -EIO; /* better errno ? */ | ||
| 162 | goto out_driver; | 160 | goto out_driver; |
| 163 | } | ||
| 164 | smsg_path = iucv_path_alloc(255, 0, GFP_KERNEL); | 161 | smsg_path = iucv_path_alloc(255, 0, GFP_KERNEL); |
| 165 | if (!smsg_path) { | 162 | if (!smsg_path) { |
| 166 | rc = -ENOMEM; | 163 | rc = -ENOMEM; |
| @@ -168,11 +165,8 @@ static int __init smsg_init(void) | |||
| 168 | } | 165 | } |
| 169 | rc = iucv_path_connect(smsg_path, &smsg_handler, "*MSG ", | 166 | rc = iucv_path_connect(smsg_path, &smsg_handler, "*MSG ", |
| 170 | NULL, NULL, NULL); | 167 | NULL, NULL, NULL); |
| 171 | if (rc) { | 168 | if (rc) |
| 172 | printk(KERN_ERR "SMSGIUCV: failed to connect to *MSG"); | ||
| 173 | rc = -EIO; /* better errno ? */ | ||
| 174 | goto out_free; | 169 | goto out_free; |
| 175 | } | ||
| 176 | cpcmd("SET SMSG IUCV", NULL, 0, NULL); | 170 | cpcmd("SET SMSG IUCV", NULL, 0, NULL); |
| 177 | return 0; | 171 | return 0; |
| 178 | 172 | ||
