]> git.baikalelectronics.ru Git - kernel.git/commit
net: tun: Convert to use sysfs_emit() APIs
authorWang Yufen <wangyufen@huawei.com>
Wed, 28 Sep 2022 11:49:43 +0000 (19:49 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 30 Sep 2022 11:27:43 +0000 (12:27 +0100)
commit9e1a33b274686f1a93a417c1b7e7b9bb0ccae9b4
treee294ad64e9b3bb59c2d4549d7a7d9a9cc5907997
parentaa865ea9a4049adf3afb31a933aa2d5834b2c267
net: tun: Convert to use sysfs_emit() APIs

Follow the advice of the Documentation/filesystems/sysfs.rst and show()
should only use sysfs_emit() or sysfs_emit_at() when formatting the value
to be returned to user space.

Signed-off-by: Wang Yufen <wangyufen@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tun.c