diff options
author | Damien Le Moal <damien.lemoal@opensource.wdc.com> | 2021-12-02 09:02:17 +0300 |
---|---|---|
committer | Damien Le Moal <damien.lemoal@opensource.wdc.com> | 2022-01-04 14:00:12 +0300 |
commit | 179a028225c145171a2e95abbc69b579f72cdf5a (patch) | |
tree | 24846aab11fd7968a88496119aa5339c1b499189 /drivers/ata/ahci.c | |
parent | 0667391e191c00fb80d5a227bef977ecb12b5b70 (diff) | |
download | linux-179a028225c145171a2e95abbc69b579f72cdf5a.tar.xz |
ata: ahci: use sysfs_emit()
Use sysfs_emit() instead of sprintf in remapped_nvme_show().
Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Diffstat (limited to 'drivers/ata/ahci.c')
-rw-r--r-- | drivers/ata/ahci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c index 1e1167e725a4..98d04a780458 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); |