[CRIU] [PATCH 2/4] files: Style tune up -- add curve braces

Cyrill Gorcunov gorcunov at openvz.org
Sat Jun 9 04:17:01 EDT 2012


Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 files.c |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/files.c b/files.c
index 86ebde7..4b3c30a 100644
--- a/files.c
+++ b/files.c
@@ -63,9 +63,10 @@ struct file_desc *find_file_desc_raw(int type, u32 id)
 	struct list_head *chain;
 
 	chain = &file_desc_hash[id % FDESC_HASH_SIZE];
-	list_for_each_entry(d, chain, hash)
+	list_for_each_entry(d, chain, hash) {
 		if (d->ops->type == type && d->id == id)
 			return d;
+	}
 
 	return NULL;
 }
@@ -95,7 +96,7 @@ void show_saved_files(void)
 	struct file_desc *fd;
 
 	pr_info("File descs:\n");
-	for (i = 0; i < FDESC_HASH_SIZE; i++)
+	for (i = 0; i < FDESC_HASH_SIZE; i++) {
 		list_for_each_entry(fd, &file_desc_hash[i], hash) {
 			struct fdinfo_list_entry *le;
 
@@ -103,6 +104,7 @@ void show_saved_files(void)
 			list_for_each_entry(le, &fd->fd_info_head, desc_list)
 				pr_info("   `- FD %d pid %d\n", le->fe.fd, le->pid);
 		}
+	}
 }
 
 int restore_fown(int fd, fown_t *fown)
@@ -360,9 +362,10 @@ static int collect_fd(int pid, struct fdinfo_entry *e, struct rst_info *rst_info
 		return -1;
 	}
 
-	list_for_each_entry(l, &fdesc->fd_info_head, desc_list)
+	list_for_each_entry(l, &fdesc->fd_info_head, desc_list) {
 		if (l->pid > le->pid)
 			break;
+	}
 
 	list_add_tail(&le->desc_list, &l->desc_list);
 
-- 
1.7.7.6



More information about the CRIU mailing list