fs: udf: Optimize udf_free_in_core_inode and udf_find_fileset function
authorLi zeming <zeming@nfschina.com>
Wed, 12 Oct 2022 10:42:35 +0000 (18:42 +0800)
committerJan Kara <jack@suse.cz>
Mon, 24 Oct 2022 14:49:00 +0000 (16:49 +0200)
commit0dafb7e671f0e769c854609548037754a68dcbc6
treec46611da7760ae62fcfbc7b4fced4e30f73a53f0
parent247f34f7b80357943234f93f247a1ae6b6c3a740
fs: udf: Optimize udf_free_in_core_inode and udf_find_fileset function

These two functions perform the following optimizations.
1. Delete the type cast of foo pointer. Void * does not need to convert
the type.
2. Delete the initialization assignment of bh variable, which is
assigned first.

Signed-off-by: Li zeming <zeming@nfschina.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20221012104235.3331-1-zeming@nfschina.com
fs/udf/super.c