From: Justin P. Mattock Date: Thu, 26 May 2011 23:25:14 +0000 (-0700) Subject: Documentation/accounting/getdelays.c: fix unused var warning X-Git-Tag: v3.0-rc1~109 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fbdd91a6293f5e7fb1914966f5d244f72619641e;p=profile%2Fcommon%2Fkernel-common.git 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 Cc: Balbir Singh Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/Documentation/accounting/getdelays.c b/Documentation/accounting/getdelays.c index e9c7778..16e16d5 100644 --- a/Documentation/accounting/getdelays.c +++ b/Documentation/accounting/getdelays.c @@ -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); @@ -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) {