ata: pata_parport-bpck6: remove useless range check from read/write_regr
authorOndrej Zary <linux@zary.sk>
Tue, 7 Mar 2023 22:45:57 +0000 (23:45 +0100)
committerDamien Le Moal <damien.lemoal@opensource.wdc.com>
Thu, 23 Mar 2023 03:20:55 +0000 (12:20 +0900)
commit84d890fc0997106a2a1f7157c152b7f6b6592c39
treee363dc25d96059fd30059bc6d154e0f96ebc2cf0
parent7ec02c5e9974099f9fe0394fd2cbd53448da703f
ata: pata_parport-bpck6: remove useless range check from read/write_regr

bpck6_read_regr() and bpck6_write_regr() check values of cont and reg
but there's no point in doing that. They can only be called with
a fixed set of values. Remove the checks.

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