]> git.baikalelectronics.ru Git - kernel.git/commit
udf: Remove useless check in udf_adinicb_write_begin()
authorJan Kara <jack@suse.cz>
Tue, 6 Sep 2016 16:04:40 +0000 (18:04 +0200)
committerJan Kara <jack@suse.cz>
Tue, 6 Sep 2016 16:04:40 +0000 (18:04 +0200)
commitd5042613a31d165ae58f1c3c6df99cf18ca36662
tree34671f162509c9ee4914b30bfc27d25c8ebf9a35
parentb5d698aeffdaa27b5deac8504978b0fbd3eaa1ff
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: Al Viro <viro@ZenIV.linux.org.uk>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/udf/file.c