From: Fabian Frederick Date: Wed, 8 Apr 2015 19:23:52 +0000 (+0200) Subject: udf: remove unnecessary test in udf_build_ustr_exact() X-Git-Tag: omap-for-v4.2/fixes-rc1^2~128^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=31f2566f33a6a25ac0baf402316e37e76632445f;p=pandora-kernel.git 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 Signed-off-by: Fabian Frederick Signed-off-by: Jan Kara --- Reading git-diff-tree failed