diff options
author | Philipp Reisner <philipp.reisner@linbit.com> | 2011-11-07 13:54:28 +0400 |
---|---|---|
committer | Philipp Reisner <philipp.reisner@linbit.com> | 2012-11-08 19:58:05 +0400 |
commit | 376694a0543f5da194d9c6e102cfcd023ffac949 (patch) | |
tree | 6c470c16923152a64c76539b9889a4f8ee2a4a2f /drivers/block/drbd/drbd_receiver.c | |
parent | 9bcd2521827bb7c418a83a77474c449d6496d55c (diff) | |
download | linux-376694a0543f5da194d9c6e102cfcd023ffac949.tar.xz |
drbd: Silenced compiler warnings
Since version 4.6.1 gcc warns about variables that get
a value assigned, but which are never read later on.
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_receiver.c')
-rw-r--r-- | drivers/block/drbd/drbd_receiver.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/drivers/block/drbd/drbd_receiver.c b/drivers/block/drbd/drbd_receiver.c index aba04d7dadf5..e823968f1cd2 100644 --- a/drivers/block/drbd/drbd_receiver.c +++ b/drivers/block/drbd/drbd_receiver.c @@ -4324,7 +4324,7 @@ static void conn_disconnect(struct drbd_tconn *tconn) { struct drbd_conf *mdev; enum drbd_conns oc; - int vnr, rv = SS_UNKNOWN_ERROR; + int vnr; if (tconn->cstate == C_STANDALONE) return; @@ -4351,7 +4351,7 @@ static void conn_disconnect(struct drbd_tconn *tconn) spin_lock_irq(&tconn->req_lock); oc = tconn->cstate; if (oc >= C_UNCONNECTED) - rv = _conn_request_state(tconn, NS(conn, C_UNCONNECTED), CS_VERBOSE); + _conn_request_state(tconn, NS(conn, C_UNCONNECTED), CS_VERBOSE); spin_unlock_irq(&tconn->req_lock); @@ -4361,7 +4361,6 @@ static void conn_disconnect(struct drbd_tconn *tconn) static int drbd_disconnected(struct drbd_conf *mdev) { - enum drbd_fencing_p fp; unsigned int i; /* wait for current activity to cease. */ @@ -4405,14 +4404,6 @@ static int drbd_disconnected(struct drbd_conf *mdev) drbd_md_sync(mdev); - fp = FP_DONT_CARE; - if (get_ldev(mdev)) { - rcu_read_lock(); - fp = rcu_dereference(mdev->ldev->disk_conf)->fencing; - rcu_read_unlock(); - put_ldev(mdev); - } - /* serialize with bitmap writeout triggered by the state change, * if any. */ wait_event(mdev->misc_wait, !test_bit(BITMAP_IO, &mdev->flags)); |