projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a8d76c
)
fs/binfmt_flat.c: remove set but not used variable 'inode'
author
YueHaibing
<
[email protected]
>
Tue, 16 Jul 2019 23:27:51 +0000
(16:27 -0700)
committer
Linus Torvalds
<
[email protected]
>
Wed, 17 Jul 2019 02:23:22 +0000
(19:23 -0700)
Fixes gcc '-Wunused-but-set-variable' warning:
fs/binfmt_flat.c: In function load_flat_file:
fs/binfmt_flat.c:419:16: warning: variable inode set but not used [-Wunused-but-set-variable]
It's never used and can be removed.
Link:
http://lkml.kernel.org/r/
[email protected]
Signed-off-by: YueHaibing <
[email protected]
>
Cc: Al Viro <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
fs/binfmt_flat.c
patch
|
blob
|
history
diff --git
a/fs/binfmt_flat.c
b/fs/binfmt_flat.c
index 8c6b50f34466da06e3641703b7cc228089e64254..831a2b25ba79f1cf39cab68316060e1ef02396c0 100644
(file)
--- a/
fs/binfmt_flat.c
+++ b/
fs/binfmt_flat.c
@@
-431,7
+431,6
@@
static int load_flat_file(struct linux_binprm *bprm,
unsigned long len, memp, memp_size, extra, rlim;
__be32 __user *reloc;
u32 __user *rp;
- struct inode *inode;
int i, rev, relocs;
loff_t fpos;
unsigned long start_code, end_code;
@@
-439,7
+438,6
@@
static int load_flat_file(struct linux_binprm *bprm,
int ret;
hdr = ((struct flat_hdr *) bprm->buf); /* exec-header */
- inode = file_inode(bprm->file);
text_len = ntohl(hdr->data_start);
data_len = ntohl(hdr->data_end) - ntohl(hdr->data_start);