aboutsummaryrefslogtreecommitdiff
path: root/drivers/block/drbd/drbd_state.c
diff options
context:
space:
mode:
authorPhilipp Reisner <philipp.reisner@linbit.com>2011-11-07 10:54:28 +0100
committerPhilipp Reisner <philipp.reisner@linbit.com>2012-11-08 16:58:05 +0100
commit376694a0543f5da194d9c6e102cfcd023ffac949 (patch)
tree6c470c16923152a64c76539b9889a4f8ee2a4a2f /drivers/block/drbd/drbd_state.c
parent9bcd2521827bb7c418a83a77474c449d6496d55c (diff)
downloadvexpress-lsk-376694a0543f5da194d9c6e102cfcd023ffac949.tar.gz
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_state.c')
-rw-r--r--drivers/block/drbd/drbd_state.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/block/drbd/drbd_state.c b/drivers/block/drbd/drbd_state.c
index 9aefca69e4e..4075bd2d251 100644
--- a/drivers/block/drbd/drbd_state.c
+++ b/drivers/block/drbd/drbd_state.c
@@ -1143,7 +1143,6 @@ int drbd_bitmap_io_from_worker(struct drbd_conf *mdev,
static void after_state_ch(struct drbd_conf *mdev, union drbd_state os,
union drbd_state ns, enum chg_state_flags flags)
{
- enum drbd_fencing_p fp;
struct sib_info sib;
sib.sib_reason = SIB_STATE_CHANGE;
@@ -1156,14 +1155,6 @@ static void after_state_ch(struct drbd_conf *mdev, union drbd_state os,
mdev->p_uuid[UI_FLAGS] &= ~((u64)2);
}
- 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);
- }
-
/* Inform userspace about the change... */
drbd_bcast_event(mdev, &sib);