summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2011-01-05 23:49:53 +0100
committerMichal Marek <mmarek@suse.cz>2011-01-05 23:49:53 +0100
commita3c888fcda911fcb6e3c071aecf49ccb6effe79d (patch)
tree5d264bc6d0c605fb01d528816a4ffa724c300072 /usr
parentgen_init_cpio: Avoid race between call to stat() and call to open() (diff)
downloadlinux-a3c888fcda911fcb6e3c071aecf49ccb6effe79d.tar.xz
linux-a3c888fcda911fcb6e3c071aecf49ccb6effe79d.zip
gen_init_cpio: checkpatch fixes
Cc: Jesper Juhl <jj@chaosbits.net> Cc: Michal Marek <mmarek@suse.cz> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Michal Marek <mmarek@suse.cz>
Diffstat (limited to 'usr')
-rw-r--r--usr/gen_init_cpio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/gen_init_cpio.c b/usr/gen_init_cpio.c
index f463cafdccb2..7f06884ecd41 100644
--- a/usr/gen_init_cpio.c
+++ b/usr/gen_init_cpio.c
@@ -315,9 +315,9 @@ static int cpio_mkfile(const char *name, const char *location,
goto error;
}
- retval = fstat (file, &buf);
+ retval = fstat(file, &buf);
if (retval) {
- fprintf (stderr, "File %s could not be stat()'ed\n", location);
+ fprintf(stderr, "File %s could not be stat()'ed\n", location);
goto error;
}