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>
This commit is contained in:
parent
d7024e331d
commit
2dcca2f7d6
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user