Commit d4e67d7c authored by Andreas Gruenbacher's avatar Andreas Gruenbacher Committed by Philipp Reisner

drbd: drbd_send_b_ack(): Return void: the result is never used

Signed-off-by: default avatarPhilipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: default avatarLars Ellenberg <lars.ellenberg@linbit.com>
parent 2f4e7abe
...@@ -1181,8 +1181,8 @@ extern int conn_send_cmd(struct drbd_tconn *tconn, int vnr, struct drbd_socket * ...@@ -1181,8 +1181,8 @@ extern int conn_send_cmd(struct drbd_tconn *tconn, int vnr, struct drbd_socket *
extern int conn_send_cmd2(struct drbd_tconn *tconn, enum drbd_packet cmd, extern int conn_send_cmd2(struct drbd_tconn *tconn, enum drbd_packet cmd,
char *data, size_t size); char *data, size_t size);
extern int drbd_send_sync_param(struct drbd_conf *mdev); extern int drbd_send_sync_param(struct drbd_conf *mdev);
extern int drbd_send_b_ack(struct drbd_conf *mdev, u32 barrier_nr, extern void drbd_send_b_ack(struct drbd_conf *mdev, u32 barrier_nr,
u32 set_size); u32 set_size);
extern int drbd_send_ack(struct drbd_conf *, enum drbd_packet, extern int drbd_send_ack(struct drbd_conf *, enum drbd_packet,
struct drbd_peer_request *); struct drbd_peer_request *);
extern int drbd_send_ack_rp(struct drbd_conf *mdev, enum drbd_packet cmd, extern int drbd_send_ack_rp(struct drbd_conf *mdev, enum drbd_packet cmd,
......
...@@ -1227,19 +1227,15 @@ int drbd_send_bitmap(struct drbd_conf *mdev) ...@@ -1227,19 +1227,15 @@ int drbd_send_bitmap(struct drbd_conf *mdev)
drbd_put_data_sock(mdev->tconn); drbd_put_data_sock(mdev->tconn);
return err; return err;
} }
void drbd_send_b_ack(struct drbd_conf *mdev, u32 barrier_nr, u32 set_size)
int drbd_send_b_ack(struct drbd_conf *mdev, u32 barrier_nr, u32 set_size)
{ {
int ok;
struct p_barrier_ack p; struct p_barrier_ack p;
p.barrier = barrier_nr; p.barrier = barrier_nr;
p.set_size = cpu_to_be32(set_size); p.set_size = cpu_to_be32(set_size);
if (mdev->state.conn < C_CONNECTED) if (mdev->state.conn >= C_CONNECTED)
return false; drbd_send_cmd(mdev, &mdev->tconn->meta, P_BARRIER_ACK, &p.head, sizeof(p));
ok = !drbd_send_cmd(mdev, &mdev->tconn->meta, P_BARRIER_ACK, &p.head, sizeof(p));
return ok;
} }
/** /**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment