udf: remove unnecessary test in udf_build_ustr_exact()
authorFabian Frederick <fabf@skynet.be>
Wed, 8 Apr 2015 19:23:52 +0000 (21:23 +0200)
committerJan Kara <jack@suse.cz>
Mon, 18 May 2015 09:23:04 +0000 (11:23 +0200)
commit31f2566f33a6a25ac0baf402316e37e76632445f
tree5d5c915502320c16ae6f7ea02233816ddbbb7ead
parent5ceb8b554dcaaf6844415cd2616ce2e0132530fa
udf: remove unnecessary test in udf_build_ustr_exact()

We can remove parameter checks:

udf_build_ustr_exact() is only called by udf_get_filename()
which now assures dest is not NULL

udf_find_entry() and udf_readdir() call udf_get_filename()
after checking sname
udf_symlink_filler() calls udf_pc_to_char() with sname=kmap(page).

udf_find_entry() and udf_readdir() call udf_get_filename with UDF_NAME_LEN
udf_pc_to_char() with PAGE_SIZE

Suggested-by: Jan Kara <jack@suse.cz>
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/udf/unicode.c