ext2: remove redundant assignment to variable desc and variable best_desc
authorColin Ian King <colin.i.king@gmail.com>
Fri, 30 Jun 2023 16:54:58 +0000 (17:54 +0100)
committerJan Kara <jack@suse.cz>
Mon, 3 Jul 2023 12:44:45 +0000 (14:44 +0200)
commit50607b514d8a9ed6c8c5c1c119158754f5f6ff17
tree95a24bd52f03b779692edce0c22a2c1fb502be32
parenta901a3568fd26ca9c4a82d8bc5ed5b3ed844d451
ext2: remove redundant assignment to variable desc and variable best_desc

Variable desc is being assigned a value that is never read, the exit
via label found immeditely returns with no access to desc. The
assignment is redundant and can be removed. Also remove variable best_desc
since this is not used. Cleans up clang scan muild warning:

fs/ext2/ialloc.c:297:4: warning: Value stored to 'desc' is never
read [deadcode.DeadStores]

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Message-Id: <20230630165458.166238-1-colin.i.king@gmail.com>
fs/ext2/ialloc.c