Commit fbc12f45 authored by Andreas Gruenbacher's avatar Andreas Gruenbacher Committed by Philipp Reisner

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

Signed-off-by: default avatarPhilipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: default avatarLars Ellenberg <lars.ellenberg@linbit.com>
parent b792c35c
...@@ -3083,10 +3083,7 @@ static int receive_protocol(struct drbd_tconn *tconn, struct packet_info *pi) ...@@ -3083,10 +3083,7 @@ static int receive_protocol(struct drbd_tconn *tconn, struct packet_info *pi)
synchronize_rcu(); synchronize_rcu();
kfree(old_net_conf); kfree(old_net_conf);
} else {
return 0;
}
clear_bit(CONN_DRY_RUN, &tconn->flags); clear_bit(CONN_DRY_RUN, &tconn->flags);
if (cf & CF_DRY_RUN) if (cf & CF_DRY_RUN)
...@@ -3131,7 +3128,7 @@ static int receive_protocol(struct drbd_tconn *tconn, struct packet_info *pi) ...@@ -3131,7 +3128,7 @@ static int receive_protocol(struct drbd_tconn *tconn, struct packet_info *pi)
} }
rcu_read_unlock(); rcu_read_unlock();
}
return 0; return 0;
disconnect_rcu_unlock: disconnect_rcu_unlock:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment