Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f27792f5 authored by Jan Kara's avatar Jan Kara
Browse files

udf: Remove useless check in udf_adinicb_write_begin()



As Al properly points out, len is guaranteed to be smaller than
PAGE_SIZE when we reach udf_adinicb_write_begin() as otherwise we would
have converted the file to the normal format.

Reported-by: default avatarAl Viro <viro@ZenIV.linux.org.uk>
Signed-off-by: default avatarJan Kara <jack@suse.cz>
parent 3cd0126d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -94,7 +94,7 @@ static int udf_adinicb_write_begin(struct file *file,
		return -ENOMEM;
	*pagep = page;

	if (!PageUptodate(page) && len != PAGE_SIZE)
	if (!PageUptodate(page))
		__udf_adinicb_readpage(page);
	return 0;
}