drbd: receive_protocol(): Make the program flow less confusing

Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
This commit is contained in:
Andreas Gruenbacher 2011-07-15 17:04:26 +02:00 committed by Philipp Reisner
parent b792c35cfb
commit fbc12f4514
1 changed files with 44 additions and 47 deletions

View File

@ -3083,10 +3083,7 @@ static int receive_protocol(struct drbd_tconn *tconn, struct packet_info *pi)
synchronize_rcu();
kfree(old_net_conf);
return 0;
}
} else {
clear_bit(CONN_DRY_RUN, &tconn->flags);
if (cf & CF_DRY_RUN)
@ -3131,7 +3128,7 @@ static int receive_protocol(struct drbd_tconn *tconn, struct packet_info *pi)
}
rcu_read_unlock();
}
return 0;
disconnect_rcu_unlock: