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:
81fc401
)
sysctl.c: remove unused variable
author
Sukanto Ghosh
<
[email protected]
>
Wed, 17 Jun 2009 23:27:50 +0000
(16:27 -0700)
committer
Linus Torvalds
<
[email protected]
>
Thu, 18 Jun 2009 20:03:54 +0000
(13:03 -0700)
Remoce the unused variable 'val' from __do_proc_dointvec()
The integer has been declared and used as 'val = -val' and there is no
reference to it anywhere.
Signed-off-by: Sukanto Ghosh <
[email protected]
>
Cc: Jaswinder Singh Rajput <
[email protected]
>
Cc: Sukanto Ghosh <
[email protected]
>
Cc: Jiri Kosina <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
kernel/sysctl.c
patch
|
blob
|
history
diff --git
a/kernel/sysctl.c
b/kernel/sysctl.c
index ab462b9968d579072de5e3421dcfa5ead354d590..62e4ff9968b5fe64a06c9f8735af10d3b6a304b9 100644
(file)
--- a/
kernel/sysctl.c
+++ b/
kernel/sysctl.c
@@
-2283,7
+2283,7
@@
static int __do_proc_dointvec(void *tbl_data, struct ctl_table *table,
void *data)
{
#define TMPBUFLEN 21
- int *i, vleft, first
=1, neg, val
;
+ int *i, vleft, first
= 1, neg
;
unsigned long lval;
size_t left, len;
@@
-2336,8
+2336,6
@@
static int __do_proc_dointvec(void *tbl_data, struct ctl_table *table,
len = p-buf;
if ((len < left) && *p && !isspace(*p))
break;
- if (neg)
- val = -val;
s += len;
left -= len;