]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ata: libata: Remove ata_noop_qc_prep()
authorDamien Le Moal <dlemoal@kernel.org>
Tue, 30 Jul 2024 05:38:07 +0000 (14:38 +0900)
committerDamien Le Moal <dlemoal@kernel.org>
Fri, 2 Aug 2024 00:18:42 +0000 (09:18 +0900)
commitb40824500eaa77668026b6d1ade6924901a680f9
treec40b717961c2adee9651e6bb289c0e0fd4b365a3
parent73eb824914ff6371b27b37706eab42c30747ca89
ata: libata: Remove ata_noop_qc_prep()

The function ata_noop_qc_prep(), as its name implies, does nothing and
simply returns AC_ERR_OK. For drivers that do not need any special
preparations of queued commands, we can avoid having to define struct
ata_port qc_prep operation by simply testing if that operation is
defined or not in ata_qc_issue(). Make this change and remove
ata_noop_qc_prep().

Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: John Garry <john.g.garry@oracle.com>
Reviewed-by: Sergey Shtylyov <s.shtylyov@omp.ru>
drivers/ata/libata-core.c
drivers/ata/libata-sff.c
drivers/ata/pata_ep93xx.c
drivers/ata/pata_icside.c
drivers/ata/pata_mpc52xx.c
drivers/ata/pata_octeon_cf.c
drivers/scsi/libsas/sas_ata.c
include/linux/libata.h