m68k: fix unused variable warning in mempcy.c
authorGreg Ungerer <gerg@uclinux.org>
Mon, 29 Oct 2012 06:15:43 +0000 (16:15 +1000)
committerGreg Ungerer <gerg@uclinux.org>
Wed, 5 Dec 2012 00:51:23 +0000 (10:51 +1000)
commit423c01eac31fe9e6c9eee7bf45ace9abcd57251b
treef535d95958f6eb208f6e7f44c1e136df45e087fa
parent3c46041769adecf3ed964cbd1e6bd4324d063450
m68k: fix unused variable warning in mempcy.c

When compiling for original 68000 or ColdFire targets you will get the
following warning when compiling arch/m68k/lib/memcpy.c:

  CC      arch/m68k/lib/memcpy.o
arch/m68k/lib/memcpy.c: In function ‘__builtin_memcpy’:
arch/m68k/lib/memcpy.c:13:15: warning: unused variable ‘temp1’

This is easily fixed by moving the definition of temp1 into the code block
where it is used.

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
arch/m68k/lib/memcpy.c