GCC4.6: Squash warning in cmd_mem.c 31/159131/1
authorMarek Vasut <marek.vasut@gmail.com>
Mon, 26 Sep 2011 00:26:06 +0000 (02:26 +0200)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Tue, 7 Nov 2017 06:08:40 +0000 (15:08 +0900)
commit448a8edaa6a75ad4632e4b65c7bf4101b7d0c69d
treeb253b20189a3299829d3ad28f94fbd8dcb8cb7d3
parent853a0f62d969a6f33f3e9a2162ad2bb1cd305394
GCC4.6: Squash warning in cmd_mem.c

cmd_mem.c: In function ‘do_mem_loop’:
cmd_mem.c:474:25: warning: variable ‘junk’ set but not used
[-Wunused-but-set-variable]

The assigned variable can be removed because the pointers are volatile so
accesses to their addresses are always generated.

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
[sw0312.kim: cherry-pick from mainline commit f3b3c3df189f to fix build warning]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Change-Id: I20e93f08dc0e7fbc73fbfdf213781948f9737eb7
common/cmd_mem.c