[S390] Cleanup cio printk messages.
[deliverable/linux.git] / drivers / s390 / cio / chp.c
index d58dc9f15b72a0a09f165fb1d1db5e8d51ed4371..db00b05917331b5901091f7697fa1fa2f2de8d96 100644 (file)
@@ -123,11 +123,8 @@ static int s390_vary_chpid(struct chp_id chpid, int on)
        CIO_TRACE_EVENT(2, dbf_text);
 
        status = chp_get_status(chpid);
-       if (!on && !status) {
-               printk(KERN_ERR "cio: chpid %x.%02x is already offline\n",
-                      chpid.cssid, chpid.id);
-               return -EINVAL;
-       }
+       if (!on && !status)
+               return 0;
 
        set_chp_logically_online(chpid, on);
        chsc_chp_vary(chpid, on);
This page took 0.023696 seconds and 5 git commands to generate.