Message ID | 20210816201042.1294196-1-trix@redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | scsi: myrb: reorder status check of myrb_get_rbld_progress() | expand |
diff --git a/drivers/scsi/myrb.c b/drivers/scsi/myrb.c index a4a88323e0209..132aec8e51e5b 100644 --- a/drivers/scsi/myrb.c +++ b/drivers/scsi/myrb.c @@ -1906,8 +1906,8 @@ static ssize_t rebuild_show(struct device *dev, status = myrb_get_rbld_progress(cb, &rbld_buf); - if (rbld_buf.ldev_num != sdev->id || - status != MYRB_STATUS_SUCCESS) + if (status != MYRB_STATUS_SUCCESS || + rbld_buf.ldev_num != sdev->id) return snprintf(buf, 32, "not rebuilding\n"); return snprintf(buf, 32, "rebuilding block %u of %u\n",