efi_loader: superfluous statement in is_dir()
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Tue, 2 Oct 2018 03:57:32 +0000 (05:57 +0200)
committerAlexander Graf <agraf@suse.de>
Tue, 16 Oct 2018 14:39:57 +0000 (16:39 +0200)
commit2c61e0cc5c67345d2d3e4a66f6e22899afa381cc
treedab61b15eff79f52607f8a6bdc0bc75833e22cca
parent6f566c231d93050e9366bc32067fdecd2aa8d8c6
efi_loader: superfluous statement in is_dir()

When is_dir() is called we have already execute set_blk_dev(fh).
So don't call it again.

This fixes CoverityScan CID 184093.

Reported-by: Tom Rini <trini@konsulko.com>
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
lib/efi_loader/efi_file.c