{
struct p_rs_param_95 *p;
struct socket *sock;
- int size, rv;
+ int size, err;
const int apv = mdev->tconn->agreed_pro_version;
size = apv <= 87 ? sizeof(struct p_rs_param)
if (apv >= 89)
strcpy(p->csums_alg, mdev->tconn->net_conf->csums_alg);
- rv = !_drbd_send_cmd(mdev, sock, cmd, &p->head, size, 0);
+ err = _drbd_send_cmd(mdev, sock, cmd, &p->head, size, 0);
} else
- rv = 0; /* not ok */
+ err = -EIO;
mutex_unlock(&mdev->tconn->data.mutex);
- return rv;
+ return err;
}
int drbd_send_protocol(struct drbd_tconn *tconn)
&mdev->tconn->cstate_mutex :
&mdev->own_state_mutex;
- ok &= drbd_send_sync_param(mdev);
+ ok &= !drbd_send_sync_param(mdev);
ok &= drbd_send_sizes(mdev, 0, 0);
ok &= drbd_send_uuids(mdev);
ok &= drbd_send_state(mdev);