]> git.ipfire.org Git - thirdparty/grub.git/commit
osdep/unix/getroot: Clean up redundant code
authorAlec Brown <alec.r.brown@oracle.com>
Sat, 20 Jan 2024 02:52:50 +0000 (02:52 +0000)
committerDaniel Kiper <daniel.kiper@oracle.com>
Thu, 25 Jan 2024 17:11:03 +0000 (18:11 +0100)
commitdb0d19dc5f85a6404f7e6a2d52bbeec0ea20579d
tree281116bcaebb62ebd48e4fa100135ed7f80ec1f3
parentc8bf75875761592e4019c6968725309cb1e79a13
osdep/unix/getroot: Clean up redundant code

In grub-core/osdep/unix/getroot.c, Coverity spotted redundant code where the
double pointer os_dev was being set to 0 and then being overwritten later
without being used. Since this is unnecessary, we can remove the code that
sets os_dev to 0.

Fixes: CID 428875
Signed-off-by: Alec Brown <alec.r.brown@oracle.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/osdep/unix/getroot.c