conntrack: Consolidate 2 selection statements.
No functional change.
@@ -2187,12 +2187,9 @@ nat_select_range_tuple(struct conntrack *ct, const struct conn *conn,
while (true) {
if (conn->nat_info->nat_action & NAT_ACTION_SRC) {
nat_conn->rev_key.dst.addr = ct_addr;
- } else {
- nat_conn->rev_key.src.addr = ct_addr;
- }
- if (conn->nat_info->nat_action & NAT_ACTION_SRC) {
nat_conn->rev_key.dst.port = htons(port);
} else {
+ nat_conn->rev_key.src.addr = ct_addr;
nat_conn->rev_key.src.port = htons(port);
}
