diff options
author | Andreas Gruenbacher <agruen@linbit.com> | 2011-03-15 20:30:14 -0400 |
---|---|---|
committer | Philipp Reisner <philipp.reisner@linbit.com> | 2012-11-08 10:44:38 -0500 |
commit | a9a9994dc70f388e91cf4bcc971843084f9af44f (patch) | |
tree | 795a0d443f553fd0d54b76f5dfdfdda5de6ea752 /drivers/block/drbd/drbd_main.c | |
parent | dd5161218bc514a29e1d8670fe1f3753d5e0f813 (diff) |
drbd: drbd_send_ack_{dp,rp}(): Return void: the result is never used
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Diffstat (limited to 'drivers/block/drbd/drbd_main.c')
-rw-r--r-- | drivers/block/drbd/drbd_main.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/block/drbd/drbd_main.c b/drivers/block/drbd/drbd_main.c index bedfc1f62c76..92b24d083956 100644 --- a/drivers/block/drbd/drbd_main.c +++ b/drivers/block/drbd/drbd_main.c | |||
@@ -1264,19 +1264,19 @@ static int _drbd_send_ack(struct drbd_conf *mdev, enum drbd_packet cmd, | |||
1264 | /* dp->sector and dp->block_id already/still in network byte order, | 1264 | /* dp->sector and dp->block_id already/still in network byte order, |
1265 | * data_size is payload size according to dp->head, | 1265 | * data_size is payload size according to dp->head, |
1266 | * and may need to be corrected for digest size. */ | 1266 | * and may need to be corrected for digest size. */ |
1267 | int drbd_send_ack_dp(struct drbd_conf *mdev, enum drbd_packet cmd, | 1267 | void drbd_send_ack_dp(struct drbd_conf *mdev, enum drbd_packet cmd, |
1268 | struct p_data *dp, int data_size) | 1268 | struct p_data *dp, int data_size) |
1269 | { | 1269 | { |
1270 | data_size -= (mdev->tconn->agreed_pro_version >= 87 && mdev->tconn->integrity_r_tfm) ? | 1270 | data_size -= (mdev->tconn->agreed_pro_version >= 87 && mdev->tconn->integrity_r_tfm) ? |
1271 | crypto_hash_digestsize(mdev->tconn->integrity_r_tfm) : 0; | 1271 | crypto_hash_digestsize(mdev->tconn->integrity_r_tfm) : 0; |
1272 | return !_drbd_send_ack(mdev, cmd, dp->sector, cpu_to_be32(data_size), | 1272 | _drbd_send_ack(mdev, cmd, dp->sector, cpu_to_be32(data_size), |
1273 | dp->block_id); | 1273 | dp->block_id); |
1274 | } | 1274 | } |
1275 | 1275 | ||
1276 | int drbd_send_ack_rp(struct drbd_conf *mdev, enum drbd_packet cmd, | 1276 | void drbd_send_ack_rp(struct drbd_conf *mdev, enum drbd_packet cmd, |
1277 | struct p_block_req *rp) | 1277 | struct p_block_req *rp) |
1278 | { | 1278 | { |
1279 | return !_drbd_send_ack(mdev, cmd, rp->sector, rp->blksize, rp->block_id); | 1279 | _drbd_send_ack(mdev, cmd, rp->sector, rp->blksize, rp->block_id); |
1280 | } | 1280 | } |
1281 | 1281 | ||
1282 | /** | 1282 | /** |