[S390] Cleanup smsgiucv printk messages.
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 14 Jul 2008 07:59:33 +0000 (09:59 +0200)
committerHeiko Carstens <heiko.carstens@de.ibm.com>
Mon, 14 Jul 2008 08:02:21 +0000 (10:02 +0200)
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
drivers/s390/net/smsgiucv.c

index 8735a415a116feba2fc8a2b14befd0a6bae86e22..164e090c2625b03b8218c1e90286ca4b04b4559e 100644 (file)
@@ -156,11 +156,8 @@ static int __init smsg_init(void)
        if (rc != 0)
                goto out;
        rc = iucv_register(&smsg_handler, 1);
-       if (rc) {
-               printk(KERN_ERR "SMSGIUCV: failed to register to iucv");
-               rc = -EIO;      /* better errno ? */
+       if (rc)
                goto out_driver;
-       }
        smsg_path = iucv_path_alloc(255, 0, GFP_KERNEL);
        if (!smsg_path) {
                rc = -ENOMEM;
@@ -168,11 +165,8 @@ static int __init smsg_init(void)
        }
        rc = iucv_path_connect(smsg_path, &smsg_handler, "*MSG    ",
                               NULL, NULL, NULL);
-       if (rc) {
-               printk(KERN_ERR "SMSGIUCV: failed to connect to *MSG");
-               rc = -EIO;      /* better errno ? */
+       if (rc)
                goto out_free;
-       }
        cpcmd("SET SMSG IUCV", NULL, 0, NULL);
        return 0;