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
@ -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 New Issue
Block a user