forked from Minki/linux
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>
This commit is contained in:
parent
0667391e19
commit
179a028225
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user