From: Benjamin Romer Date: Fri, 5 Dec 2014 22:08:47 +0000 (-0500) Subject: staging: unisys: add missing brackets in info_debugfs_read() X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=2dcca2f7d6f03b1ce69113d4228e715ba923b4bf;p=deliverable%2Flinux.git 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 Signed-off-by: Benjamin Romer Signed-off-by: Greg Kroah-Hartman --- 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);