staging: unisys: add missing brackets in info_debugfs_read()
authorBenjamin Romer <benjamin.romer@unisys.com>
Fri, 5 Dec 2014 22:08:47 +0000 (17:08 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 10 Jan 2015 01:32:32 +0000 (17:32 -0800)
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>
drivers/staging/unisys/uislib/uislib.c

index e255f1f9e26caf8bb265d43684c44381ea243c4d..0930919b591584a55c363aefc66d644947d06cbe 100644 (file)
@@ -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);