[CRIU] [PATCH 16/16] sk-unix: Shrink condition in resolve_unix_peers
Cyrill Gorcunov
gorcunov at openvz.org
Fri Dec 9 09:17:16 PST 2016
If socket is seen or not connected no need to
check in multiline.
Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
criu/sk-unix.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/criu/sk-unix.c b/criu/sk-unix.c
index 429f71ec52a5..ec1b85023eaf 100644
--- a/criu/sk-unix.c
+++ b/criu/sk-unix.c
@@ -1431,9 +1431,7 @@ static int resolve_unix_peers(void *unused)
struct unix_sk_info *ui, *peer;
list_for_each_entry(ui, &unix_sockets, list) {
- if (ui->peer)
- continue;
- if (!ui->ue->peer_ino)
+ if (ui->peer || !ui->ue->peer_ino)
continue;
peer = find_unix_sk_by_ino(ui->ue->peer_ino);
--
2.7.4
More information about the CRIU
mailing list