diff options
author | Andreas Gruenbacher <agruen@linbit.com> | 2011-08-09 04:49:01 +0400 |
---|---|---|
committer | Philipp Reisner <philipp.reisner@linbit.com> | 2014-02-17 19:49:36 +0400 |
commit | 79a3c8d38cabd1a900340852e527b0a4ce8a459d (patch) | |
tree | 6fb1960556f05c84749c54ed124ccb47a0127e2e /drivers/block/drbd/drbd_main.c | |
parent | 753c619195bc6b5bb799942ed1eeffe21b26b68c (diff) | |
download | linux-79a3c8d38cabd1a900340852e527b0a4ce8a459d.tar.xz |
drbd: drbd_csum_bio(), drbd_csum_ee(): Remove unused device argument
Signed-off-by: Andreas Gruenbacher <agruen@linbit.com>
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Diffstat (limited to 'drivers/block/drbd/drbd_main.c')
-rw-r--r-- | drivers/block/drbd/drbd_main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/block/drbd/drbd_main.c b/drivers/block/drbd/drbd_main.c index f7b6bfbab163..8f178fb54f26 100644 --- a/drivers/block/drbd/drbd_main.c +++ b/drivers/block/drbd/drbd_main.c @@ -1646,7 +1646,7 @@ int drbd_send_dblock(struct drbd_device *device, struct drbd_request *req) } p->dp_flags = cpu_to_be32(dp_flags); if (dgs) - drbd_csum_bio(device, first_peer_device(device)->connection->integrity_tfm, req->master_bio, p + 1); + drbd_csum_bio(first_peer_device(device)->connection->integrity_tfm, req->master_bio, p + 1); err = __send_command(first_peer_device(device)->connection, device->vnr, sock, P_DATA, sizeof(*p) + dgs, NULL, req->i.size); if (!err) { /* For protocol A, we have to memcpy the payload into @@ -1670,7 +1670,7 @@ int drbd_send_dblock(struct drbd_device *device, struct drbd_request *req) /* 64 byte, 512 bit, is the largest digest size * currently supported in kernel crypto. */ unsigned char digest[64]; - drbd_csum_bio(device, first_peer_device(device)->connection->integrity_tfm, req->master_bio, digest); + drbd_csum_bio(first_peer_device(device)->connection->integrity_tfm, req->master_bio, digest); if (memcmp(p + 1, digest, dgs)) { drbd_warn(device, "Digest mismatch, buffer modified by upper layers during write: %llus +%u\n", @@ -1710,7 +1710,7 @@ int drbd_send_block(struct drbd_device *device, enum drbd_packet cmd, p->seq_num = 0; /* unused */ p->dp_flags = 0; if (dgs) - drbd_csum_ee(device, first_peer_device(device)->connection->integrity_tfm, peer_req, p + 1); + drbd_csum_ee(first_peer_device(device)->connection->integrity_tfm, peer_req, p + 1); err = __send_command(first_peer_device(device)->connection, device->vnr, sock, cmd, sizeof(*p) + dgs, NULL, peer_req->i.size); if (!err) err = _drbd_send_zc_ee(device, peer_req); |