debugfs: drop pointless nul-termination in debugfs_read_file_bool()
authorRasmus Villemoes <linux@rasmusvillemoes.dk>
Fri, 26 Mar 2021 15:14:11 +0000 (16:14 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 5 Apr 2021 11:17:51 +0000 (13:17 +0200)
commitc8a9c285f136f0cc65ac8328cd1710b155ad3df8
treea4ebdffe10e58368383040d1f1fdc5c79c77fad7
parent72a91f192da032b68519fafaecce03fd002d669a
debugfs: drop pointless nul-termination in debugfs_read_file_bool()

simple_read_from_buffer() doesn't care about any bytes in the buffer
beyond "available". Making the buffer nul-terminated is therefore
completely pointless.

Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Link: https://lore.kernel.org/r/20210326151411.732220-1-linux@rasmusvillemoes.dk
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/debugfs/file.c