Skip to content

Commit

Permalink
Documentation/accounting/getdelays.c: fix unused var warning
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Justin P. Mattock authored and Linus Torvalds committed May 27, 2011
1 parent 72eef0f commit fbdd91a
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions Documentation/accounting/getdelays.c
Original file line number Diff line number Diff line change
Expand Up @@ -433,8 +433,6 @@ int main(int argc, char *argv[])
}

do {
int i;

rep_len = recv(nl_sd, &msg, sizeof(msg), 0);
PRINTF("received %d bytes\n", rep_len);

Expand All @@ -459,7 +457,6 @@ int main(int argc, char *argv[])

na = (struct nlattr *) GENLMSG_DATA(&msg);
len = 0;
i = 0;
while (len < rep_len) {
len += NLA_ALIGN(na->nla_len);
switch (na->nla_type) {
Expand Down

0 comments on commit fbdd91a

Please sign in to comment.