summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Romer <benjamin.romer@unisys.com>2014-12-05 17:08:47 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-01-09 17:32:32 -0800
commit2dcca2f7d6f03b1ce69113d4228e715ba923b4bf (patch)
tree56638bb457099b9876d3e8ff0f049aaafa377642
parentd7024e331d3efd038c98afe4b99964222da54835 (diff)
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: Ken Depro <kenneth.depro@unisys.com> Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/unisys/uislib/uislib.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/staging/unisys/uislib/uislib.c b/drivers/staging/unisys/uislib/uislib.c
index e255f1f9e26c..0930919b5915 100644
--- a/drivers/staging/unisys/uislib/uislib.c
+++ b/drivers/staging/unisys/uislib/uislib.c
@@ -1202,8 +1202,9 @@ info_debugfs_read(struct file *file, char __user *buf,
/* if the read fails, then -1 will be returned */
totalBytes = info_debugfs_read_helper(&temp, &remaining_bytes);
ProcReadBufferValid = 1;
- } else
+ } else {
totalBytes = strlen(ProcReadBuffer);
+ }
return simple_read_from_buffer(buf, len, offset,
ProcReadBuffer, totalBytes);