ahci: qoriq: Fix a compiling warning
authorArnd Bergmann <arnd@arndb.de>
Wed, 14 Oct 2015 08:46:52 +0000 (16:46 +0800)
committerTejun Heo <tj@kernel.org>
Thu, 15 Oct 2015 16:03:00 +0000 (12:03 -0400)
commiteb351031a15c4a83b9955aadad783c6672ab8868
treee0adbd017457348e2353699a498d2ae9b2a4788e
parent3a53b3bcc7af2f7ddfb682cb8efb26e40fe50fb1
ahci: qoriq: Fix a compiling warning

kbuild test robot reports the warnings:
drivers/ata/ahci_qoriq.c: In function 'ahci_qoriq_hardreset':
>> include/asm-generic/io.h:163:2: warning: 'px_is' may be used
>> uninitialized in this function [-Wuninitialized]
drivers/ata/ahci_qoriq.c:70:14: note: 'px_is' was declared here
>> include/asm-generic/io.h:163:2: warning: 'px_cmd' may be used
>> uninitialized in this function [-Wuninitialized]
drivers/ata/ahci_qoriq.c:70:6: note: 'px_cmd' was declared here

This patch fixed it by introducing a local variable.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Tang Yuantian <Yuantian.Tang@freescale.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
drivers/ata/ahci_qoriq.c