提交 2dcca2f7 编写于 作者: B Benjamin Romer 提交者: Greg Kroah-Hartman

staging: unisys: add missing brackets in info_debugfs_read()

The if statement in info_debugfs_read() needs another set of brackets for the
else clause.
Signed-off-by: NKen Depro <kenneth.depro@unisys.com>
Signed-off-by: NBenjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 d7024e33
...@@ -1202,8 +1202,9 @@ info_debugfs_read(struct file *file, char __user *buf, ...@@ -1202,8 +1202,9 @@ info_debugfs_read(struct file *file, char __user *buf,
/* if the read fails, then -1 will be returned */ /* if the read fails, then -1 will be returned */
totalBytes = info_debugfs_read_helper(&temp, &remaining_bytes); totalBytes = info_debugfs_read_helper(&temp, &remaining_bytes);
ProcReadBufferValid = 1; ProcReadBufferValid = 1;
} else } else {
totalBytes = strlen(ProcReadBuffer); totalBytes = strlen(ProcReadBuffer);
}
return simple_read_from_buffer(buf, len, offset, return simple_read_from_buffer(buf, len, offset,
ProcReadBuffer, totalBytes); ProcReadBuffer, totalBytes);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册