diff options
author | Justin P. Mattock <justinmattock@gmail.com> | 2011-05-26 19:25:14 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-05-26 20:12:34 -0400 |
commit | fbdd91a6293f5e7fb1914966f5d244f72619641e (patch) | |
tree | a022652bf869cf946efefd478ea58e257a206b3a /Documentation/accounting | |
parent | 72eef0f3af410de2c85f236140ddea61b71cfc3e (diff) |
Documentation/accounting/getdelays.c: fix unused var warning
Fixes
Documentation/accounting/getdelays.c: In function `main':
Documentation/accounting/getdelays.c:436:7: warning: variable `i' set but not used [-Wunused-but-set-variable]
Signed-off-by: Justin P. Mattock <justinmattock@gmail.com>
Cc: Balbir Singh <balbir@in.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Documentation/accounting')
-rw-r--r-- | Documentation/accounting/getdelays.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/Documentation/accounting/getdelays.c b/Documentation/accounting/getdelays.c index e9c77788a39..16e16d57b9e 100644 --- a/Documentation/accounting/getdelays.c +++ b/Documentation/accounting/getdelays.c | |||
@@ -433,8 +433,6 @@ int main(int argc, char *argv[]) | |||
433 | } | 433 | } |
434 | 434 | ||
435 | do { | 435 | do { |
436 | int i; | ||
437 | |||
438 | rep_len = recv(nl_sd, &msg, sizeof(msg), 0); | 436 | rep_len = recv(nl_sd, &msg, sizeof(msg), 0); |
439 | PRINTF("received %d bytes\n", rep_len); | 437 | PRINTF("received %d bytes\n", rep_len); |
440 | 438 | ||
@@ -459,7 +457,6 @@ int main(int argc, char *argv[]) | |||
459 | 457 | ||
460 | na = (struct nlattr *) GENLMSG_DATA(&msg); | 458 | na = (struct nlattr *) GENLMSG_DATA(&msg); |
461 | len = 0; | 459 | len = 0; |
462 | i = 0; | ||
463 | while (len < rep_len) { | 460 | while (len < rep_len) { |
464 | len += NLA_ALIGN(na->nla_len); | 461 | len += NLA_ALIGN(na->nla_len); |
465 | switch (na->nla_type) { | 462 | switch (na->nla_type) { |