]> 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)
commit1648a4177f58138c256a1594e1d817be985d8f14
treee294ad64e9b3bb59c2d4549d7a7d9a9cc5907997
parent53f0ca3f93ffcb68e0324ec0672fe1b0f891e279
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