projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4f543fa
)
arch/alpha/boot/tools/objstrip.c: wrong variable tested after open()
author
Roel Kluin
<roel.kluin@gmail.com>
Tue, 22 Sep 2009 00:04:01 +0000
(17:04 -0700)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Tue, 22 Sep 2009 14:17:43 +0000
(07:17 -0700)
The incorrect variable is tested. fd is used for another open()
and is already tested.
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
Cc: Richard Henderson <rth@twiddle.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/alpha/boot/tools/objstrip.c
patch
|
blob
|
history
diff --git
a/arch/alpha/boot/tools/objstrip.c
b/arch/alpha/boot/tools/objstrip.c
index ef1838230291190f6fcdb2e151919594b738edc1..9d0727d18aeeb82f6a1920f0ba3fc2bb1775e5cc 100644
(file)
--- a/
arch/alpha/boot/tools/objstrip.c
+++ b/
arch/alpha/boot/tools/objstrip.c
@@
-93,7
+93,7
@@
main (int argc, char *argv[])
ofd = 1;
if (i < argc) {
ofd = open(argv[i++], O_WRONLY | O_CREAT | O_TRUNC, 0666);
- if (fd == -1) {
+ if (
o
fd == -1) {
perror("open");
exit(1);
}