diff options
author | Damien Le Moal <dlemoal@kernel.org> | 2024-07-24 00:45:56 +0200 |
---|---|---|
committer | Damien Le Moal <dlemoal@kernel.org> | 2024-07-29 02:07:41 +0200 |
commit | f8f26f743ccfa882620f39a8fbca6d5d138d2e46 (patch) | |
tree | 5a50bd67b75884284bd9848d56183de89eb99f02 /drivers/ata/libata-core.c | |
parent | dt-bindings: ata: qcom,apq8064-ahci: add to dtschema (diff) | |
download | linux-f8f26f743ccfa882620f39a8fbca6d5d138d2e46.tar.xz linux-f8f26f743ccfa882620f39a8fbca6d5d138d2e46.zip |
ata: libata: Change ata_dev_knobble() to return a bool
Change the function ata_dev_knobble() to return a boolean instead of a
u8.
Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Igor Pylypiv <ipylypiv@google.com>
Reviewed-by: Niklas Cassel <cassel@kernel.org>
Diffstat (limited to 'drivers/ata/libata-core.c')
-rw-r--r-- | drivers/ata/libata-core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c index c7752dc80028..c49334e13c0b 100644 --- a/drivers/ata/libata-core.c +++ b/drivers/ata/libata-core.c @@ -2219,12 +2219,12 @@ static int ata_do_link_spd_horkage(struct ata_device *dev) return 0; } -static inline u8 ata_dev_knobble(struct ata_device *dev) +static inline bool ata_dev_knobble(struct ata_device *dev) { struct ata_port *ap = dev->link->ap; if (ata_dev_blacklisted(dev) & ATA_HORKAGE_BRIDGE_OK) - return 0; + return false; return ((ap->cbl == ATA_CBL_SATA) && (!ata_id_is_sata(dev->id))); } |