]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lib/loopdev: assigned value is never read [clang-analyzer]
authorSami Kerola <kerolasa@iki.fi>
Sun, 7 Jul 2013 19:54:26 +0000 (20:54 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 9 Jul 2013 12:25:00 +0000 (14:25 +0200)
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
lib/loopdev.c

index 3b65b5d29f186b2a2cf9229dd9961aca6d1ffe13..001a9ad4bc30e3bf533cdf557276c63c13eee7b1 100644 (file)
@@ -1234,7 +1234,6 @@ int loopcxt_setup_device(struct loopdev_cxt *lc)
                goto err;
 
        close(file_fd);
-       file_fd = -1;
 
        memset(&lc->info, 0, sizeof(lc->info));
        lc->has_info = 0;