From: Damien Le Moal Date: Thu, 2 Dec 2021 06:02:17 +0000 (+0900) Subject: ata: ahci: use sysfs_emit() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=179a028225c145171a2e95abbc69b579f72cdf5a;p=linux.git ata: ahci: use sysfs_emit() Use sysfs_emit() instead of sprintf in remapped_nvme_show(). Signed-off-by: Damien Le Moal --- diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c index 1e1167e725a40..98d04a7804585 100644 --- a/drivers/ata/ahci.c +++ b/drivers/ata/ahci.c @@ -1657,7 +1657,7 @@ static ssize_t remapped_nvme_show(struct device *dev, struct ata_host *host = dev_get_drvdata(dev); struct ahci_host_priv *hpriv = host->private_data; - return sprintf(buf, "%u\n", hpriv->remapped_nvme); + return sysfs_emit(buf, "%u\n", hpriv->remapped_nvme); } static DEVICE_ATTR_RO(remapped_nvme);