Skip to content
Snippets Groups Projects
Commit 3799b3f4 authored by Mark Tomlinson's avatar Mark Tomlinson Committed by Tom Rini
Browse files

JFFS2: Return early when file read not necessary


If a destination is not provided, jffs2_1pass_read_inode() only
returns the length of the file. In this case, avoid reading all
the data nodes, and return as soon as the length of the file is
known.

Signed-off-by: default avatarMark Tomlinson <mark.tomlinson@alliedtelesis.co.nz>
parent 39d0ce06
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment