From: David S. Miller Date: Mon, 11 Apr 2011 23:00:00 +0000 (-0700) Subject: s2io: Fix warnings due to -Wunused-but-set-variable. X-Git-Tag: v3.0-rc1~377^2~452 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d83d282bcbf24ec8ddd4f0eb57f7ad302c431b8a;p=pandora-kernel.git s2io: Fix warnings due to -Wunused-but-set-variable. Most of these are cases where we are trying to read back a register after a write to ensure completion. Simply pre-fixing the readl() or readq() with "(void)" is sufficient because these are volatile operations and the compiler cannot eliminate them just because no real assignment takes place. The case of free_rxd_blk()'s assignments to "struct buffAdd *ba" is a real spurious assignment as this variable is completely otherwise unused. Signed-off-by: David S. Miller Acked-by: Jon Mason --- Reading git-diff-tree failed