ata: pata_parport-bpck6: don't cast pi->pardev to struct pardevice *
authorOndrej Zary <linux@zary.sk>
Tue, 7 Mar 2023 22:45:58 +0000 (23:45 +0100)
committerDamien Le Moal <damien.lemoal@opensource.wdc.com>
Thu, 23 Mar 2023 03:21:00 +0000 (12:21 +0900)
commit629722855391598325a3e7545ebcf23a4f8e6acb
treefdd8fa61a0a5554d834023a6bacff946ebf871fd
parent84d890fc0997106a2a1f7157c152b7f6b6592c39
ata: pata_parport-bpck6: don't cast pi->pardev to struct pardevice *

pi->pardev is struct pardevice *, no need to cast it to the same type.
Also clean up the return mess.

Signed-off-by: Ondrej Zary <linux@zary.sk>
Reviewed-by: Sergey Shtylyov <s.shtylyov@omp.ru>
Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
drivers/ata/pata_parport/bpck6.c