]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
ata: libata: Change ata_dev_knobble() to return a bool
authorDamien Le Moal <dlemoal@kernel.org>
Tue, 23 Jul 2024 22:45:56 +0000 (07:45 +0900)
committerDamien Le Moal <dlemoal@kernel.org>
Mon, 29 Jul 2024 00:07:41 +0000 (09:07 +0900)
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>
drivers/ata/libata-core.c

index c7752dc800280ed6102e0a5bce29b74c68ca9a92..c49334e13c0b6416217865c549b65cb58a8bf14a 100644 (file)
@@ -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)));
 }