summaryrefslogtreecommitdiffstats
path: root/drivers/block/drbd/drbd_main.c
diff options
context:
space:
mode:
authorAndreas Gruenbacher2011-03-16 01:12:50 +0100
committerPhilipp Reisner2012-11-08 16:44:35 +0100
commitf02d4d0a9c3d3b8aef5a3b1016a3f69b0ae9496e (patch)
tree3db577801e8f2523e9ab08ec45637d5769717243 /drivers/block/drbd/drbd_main.c
parentdrbd: drbd_gen_and_send_sync_uuid(): Return void: the result is never used (diff)
downloadkernel-qcow2-linux-f02d4d0a9c3d3b8aef5a3b1016a3f69b0ae9496e.tar.gz
kernel-qcow2-linux-f02d4d0a9c3d3b8aef5a3b1016a3f69b0ae9496e.tar.xz
kernel-qcow2-linux-f02d4d0a9c3d3b8aef5a3b1016a3f69b0ae9496e.zip
drbd: drbd_send_sizes(): Return 0 upon success and an error code otherwise
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.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/block/drbd/drbd_main.c b/drivers/block/drbd/drbd_main.c
index 7ed2e2ebb895..8e3607a2ae0d 100644
--- a/drivers/block/drbd/drbd_main.c
+++ b/drivers/block/drbd/drbd_main.c
@@ -938,7 +938,6 @@ int drbd_send_sizes(struct drbd_conf *mdev, int trigger_reply, enum dds_flags fl
struct p_sizes p;
sector_t d_size, u_size;
int q_order_type, max_bio_size;
- int ok;
if (get_ldev_if_state(mdev, D_NEGOTIATING)) {
D_ASSERT(mdev->ldev->backing_bdev);
@@ -962,8 +961,7 @@ int drbd_send_sizes(struct drbd_conf *mdev, int trigger_reply, enum dds_flags fl
p.queue_order_type = cpu_to_be16(q_order_type);
p.dds_flags = cpu_to_be16(flags);
- ok = !drbd_send_cmd(mdev, &mdev->tconn->data, P_SIZES, &p.head, sizeof(p));
- return ok;
+ return drbd_send_cmd(mdev, &mdev->tconn->data, P_SIZES, &p.head, sizeof(p));
}
/**