From 351b23bb1acfa8e60b807df5236009e802ea911f Mon Sep 17 00:00:00 2001 From: Andrey Vagin Date: Mon, 20 Aug 2012 17:50:23 +0400 Subject: [PATCH] sk-unix: fix indents Signed-off-by: Andrey Vagin Signed-off-by: Pavel Emelyanov --- sk-unix.c | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/sk-unix.c b/sk-unix.c index fa9cd8a25..b00ecf7fd 100644 --- a/sk-unix.c +++ b/sk-unix.c @@ -520,33 +520,33 @@ static int post_open_unix_sk(struct file_desc *d, int fd) if (peer == NULL) return 0; - pr_info("\tConnect %#x to %#x\n", ui->ue->ino, peer->ue->ino); + pr_info("\tConnect %#x to %#x\n", ui->ue->ino, peer->ue->ino); - fle = file_master(&ui->d); + fle = file_master(&ui->d); - /* Skip external sockets */ - if (!list_empty(&peer->d.fd_info_head)) - futex_wait_while(&peer->bound, 0); + /* Skip external sockets */ + if (!list_empty(&peer->d.fd_info_head)) + futex_wait_while(&peer->bound, 0); - memset(&addr, 0, sizeof(addr)); - addr.sun_family = AF_UNIX; - memcpy(&addr.sun_path, peer->name, peer->ue->name.len); + memset(&addr, 0, sizeof(addr)); + addr.sun_family = AF_UNIX; + memcpy(&addr.sun_path, peer->name, peer->ue->name.len); - if (connect(fle->fe->fd, (struct sockaddr *)&addr, - sizeof(addr.sun_family) + - peer->ue->name.len) < 0) { - pr_perror("Can't connect %#x socket", ui->ue->ino); - return -1; - } + if (connect(fle->fe->fd, (struct sockaddr *)&addr, + sizeof(addr.sun_family) + + peer->ue->name.len) < 0) { + pr_perror("Can't connect %#x socket", ui->ue->ino); + return -1; + } - if (restore_sk_queue(fle->fe->fd, peer->ue->id)) - return -1; + if (restore_sk_queue(fle->fe->fd, peer->ue->id)) + return -1; - if (rst_file_params(fle->fe->fd, ui->ue->fown, ui->ue->flags)) - return -1; + if (rst_file_params(fle->fe->fd, ui->ue->fown, ui->ue->flags)) + return -1; - if (restore_socket_opts(fle->fe->fd, ui->ue->opts)) - return -1; + if (restore_socket_opts(fle->fe->fd, ui->ue->opts)) + return -1; return 0; }