]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lib/loopdev: remove dead assigment and null deference
authorKarel Zak <kzak@redhat.com>
Thu, 2 Feb 2012 13:48:03 +0000 (14:48 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 2 Feb 2012 13:48:03 +0000 (14:48 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
lib/loopdev.c

index d656a40c82d23698fc3730a7d53cdff402fb0e61..f917f187c9a52e91f6fff692ebf1ab98a1fb1237 100644 (file)
@@ -320,7 +320,7 @@ int loopcxt_init_iterator(struct loopdev_cxt *lc, int flags)
  */
 int loopcxt_deinit_iterator(struct loopdev_cxt *lc)
 {
-       struct loopdev_iter *iter = &lc->iter;
+       struct loopdev_iter *iter;
 
        if (!lc)
                return -EINVAL;