ata: libata-core: Remove ata_exec_internal_sg()
authorDamien Le Moal <dlemoal@kernel.org>
Tue, 2 Apr 2024 05:59:52 +0000 (14:59 +0900)
committerDamien Le Moal <dlemoal@kernel.org>
Sat, 13 Apr 2024 00:05:17 +0000 (09:05 +0900)
commit9e6938e14ea5b2ec94b7f63d304e483232738cf7
treecb72bd547463defee862d3ddbf51d3dc5f1ce943
parent21a6f37d8891d41822b2557b60d95aae2fde4f50
ata: libata-core: Remove ata_exec_internal_sg()

ata_exec_internal() is the only caller of ata_exec_internal_sg() and
always calls this function with a single element scattergather list.
Remove ata_exec_internal_sg() and code it directly in
ata_exec_internal(), simplifying a little the sgl handling for the
command.

While at it, change the function signature to use the proper enum
dma_data_direction type for the dma_dir argument, cleanup comments
(capitalization and remove useless comments) and change the variable
auto_timeout type to a boolean.

No functional change.

Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: John Garry <john.g.garry@oracle.com>
Reviewed-by: Niklas Cassel <cassel@kernel.org>
drivers/ata/libata-core.c
drivers/ata/libata.h