ide: remove set but not used variable 'hwif'
authorWang Hai <wanghai38@huawei.com>
Sat, 26 Oct 2019 01:57:38 +0000 (09:57 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 Jan 2020 12:38:26 +0000 (13:38 +0100)
commit98949a1946d70771789def0c9dbc239497f9f138
treee13addc4d6b8e74e3ee3809976a3377a8852daac
parent77df3500a75d946b3f60112a5207900e29e13b68
ide: remove set but not used variable 'hwif'

Fix the following gcc warning:

drivers/ide/pmac.c: In function pmac_ide_setup_device:
drivers/ide/pmac.c:1027:14: warning: variable hwif set but not used
[-Wunused-but-set-variable]

Fixes: d58b0c39e32f ("powerpc/macio: Rework hotplug media bay support")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wang Hai <wanghai38@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/ide/pmac.c