intel_scu_ipc: fix signedness bug
authorAxel Lin <axel.lin@gmail.com>
Tue, 25 Jan 2011 14:12:12 +0000 (14:12 +0000)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 25 Jan 2011 22:57:17 +0000 (08:57 +1000)
commitecb5646cb098d9d1961c4b1af7b776c73b7541ac
treecddda632fe6e3af9fb7f28cf1fdbb076e8d88b22
parentc723fdab8aa728dc2bf0da6a0de8bb9c3f588d84
intel_scu_ipc: fix signedness bug

busy_loop() returns negative error code, thus change err variable
from u32 to int to properly propagate correct error code.

Also remove unneeded initialization for err and i variables.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/platform/x86/intel_scu_ipc.c