Whamcloud - gitweb
debugfs: clean up read_journal_block() to avoid Coverity complaint
authorTheodore Ts'o <tytso@mit.edu>
Fri, 3 Jan 2014 14:39:33 +0000 (09:39 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 5 Jan 2014 00:11:37 +0000 (19:11 -0500)
commitb34b94d5cd500e0369f0af43b21ab6af890e531d
tree69713710d49ae3a912becf991c6ee5a3b582192c
parent2873927d15ffb9ee9ed0e2700791a0e519c715aa
debugfs: clean up read_journal_block() to avoid Coverity complaint

The read_journal_block() function was needlessly complicated, which
made it harder to read/maintain, and it also tripped up Coverity.
Cleaning it up also avoided some signed/unsigned casts, and allows us
to avoid passing got back to the caller, since it wasn't needed.

Addresses-Coverity-Bug: #709539

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
debugfs/logdump.c