mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Thiago Rafael Becker <trbecker@trbecker.org>
To: akpm@linux-foundation.org, djwong@us.ibm.com,
	kernel-janitors@vger.kernel.org
Cc: Thiago Rafael Becker <trbecker@trbecker.org>,
	linux-kernel@vger.kernel.org
Subject: [PATCH] crc32.c: cleanup unused variables warning
Date: Wed,  9 May 2012 20:35:37 -0300	[thread overview]
Message-ID: <1336606537-11538-1-git-send-email-trbecker@trbecker.org> (raw)

Variables t4, t5, t6 and t7 are only used when CRC_LE_BITS != 32. This cleans
the following compilation warnings:

lib/crc32.c: In function 'crc32_body':
lib/crc32.c:77:55: warning: unused variable 't7'
lib/crc32.c:77:41: warning: unused variable 't6'
lib/crc32.c:77:27: warning: unused variable 't5'
lib/crc32.c:77:13: warning: unused variable 't4'

CC: linux-kernel@vger.kernel.org

Signed-off-by: Thiago Rafael Becker <trbecker@trbecker.org>

---
 lib/crc32.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/crc32.c b/lib/crc32.c
index b0d278f..61774b8 100644
--- a/lib/crc32.c
+++ b/lib/crc32.c
@@ -74,7 +74,9 @@ crc32_body(u32 crc, unsigned char const *buf, size_t len, const u32 (*tab)[256])
 	size_t i;
 # endif
 	const u32 *t0=tab[0], *t1=tab[1], *t2=tab[2], *t3=tab[3];
+# if CRC_LE_BITS != 32
 	const u32 *t4 = tab[4], *t5 = tab[5], *t6 = tab[6], *t7 = tab[7];
+# endif
 	u32 q;
 
 	/* Align it */
-- 
1.7.10.1


                 reply	other threads:[~2012-05-09 23:55 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1336606537-11538-1-git-send-email-trbecker@trbecker.org \
    --to=trbecker@trbecker.org \
    --cc=akpm@linux-foundation.org \
    --cc=djwong@us.ibm.com \
    --cc=kernel-janitors@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®