Re: [PATCH 02/32] pata_parport-bpck6: remove useless range check from read/write_regr

Sergey Shtylyov <[email protected]> Wed, 8 Mar 2023 21:03:36 +0300
Newsgroups gmane.linux.ide,gmane.linux.block,gmane.linux.parport,gmane.linux.kernel
Organization Open Mobile Platform
Message-ID <[email protected]>
On 3/8/23 1:45 AM, Ondrej Zary wrote:

> 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 <[email protected]>


Reviewed-by: Sergey Shtylyov <[email protected]>

[...]

MBR, Sergey