Commit e666b79e authored by Tomas Winkler's avatar Tomas Winkler Committed by Greg Kroah-Hartman
Browse files

mei: use sysfs_emit() in tx_queue_limit_show sysfs



Using of snprintf is discouraged in sysfs use the new sysfs_emit() API.

Signed-off-by: default avatarTomas Winkler <tomas.winkler@intel.com>
Link: https://lore.kernel.org/r/20210208150649.141358-2-tomas.winkler@intel.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b398d53c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1026,7 +1026,7 @@ static ssize_t tx_queue_limit_show(struct device *device,
	size = dev->tx_queue_limit;
	mutex_unlock(&dev->device_lock);

	return snprintf(buf, PAGE_SIZE, "%u\n", size);
	return sysfs_emit(buf, "%u\n", size);
}

static ssize_t tx_queue_limit_store(struct device *device,