diff options
Diffstat (limited to 'drivers/s390/cio/chp.c')
-rw-r--r-- | drivers/s390/cio/chp.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/s390/cio/chp.c b/drivers/s390/cio/chp.c index d58dc9f15b72..db00b0591733 100644 --- a/drivers/s390/cio/chp.c +++ b/drivers/s390/cio/chp.c | |||
@@ -123,11 +123,8 @@ static int s390_vary_chpid(struct chp_id chpid, int on) | |||
123 | CIO_TRACE_EVENT(2, dbf_text); | 123 | CIO_TRACE_EVENT(2, dbf_text); |
124 | 124 | ||
125 | status = chp_get_status(chpid); | 125 | status = chp_get_status(chpid); |
126 | if (!on && !status) { | 126 | if (!on && !status) |
127 | printk(KERN_ERR "cio: chpid %x.%02x is already offline\n", | 127 | return 0; |
128 | chpid.cssid, chpid.id); | ||
129 | return -EINVAL; | ||
130 | } | ||
131 | 128 | ||
132 | set_chp_logically_online(chpid, on); | 129 | set_chp_logically_online(chpid, on); |
133 | chsc_chp_vary(chpid, on); | 130 | chsc_chp_vary(chpid, on); |