Commit 179a0282 authored by Damien Le Moal's avatar Damien Le Moal
Browse files

ata: ahci: use sysfs_emit()



Use sysfs_emit() instead of sprintf in remapped_nvme_show().

Signed-off-by: default avatarDamien Le Moal <damien.lemoal@opensource.wdc.com>
parent 0667391e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);