mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-28 15:20:41 +00:00
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: Tomas Winkler <tomas.winkler@intel.com> Link: https://lore.kernel.org/r/20210208150649.141358-2-tomas.winkler@intel.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
b398d53cd4
commit
e666b79e22
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue