]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
coverity: Don't store fgets return value if we don't use it
authorStéphane Graber <stgraber@ubuntu.com>
Wed, 12 Feb 2014 21:12:39 +0000 (16:12 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Wed, 12 Feb 2014 22:04:18 +0000 (17:04 -0500)
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
src/lxc/conf.c

index cd40247d5cf9c3adff4a14bdfefc262efa6b0fde..8eccd367d7367840e43bcca8ef0493a3f0317f17 100644 (file)
@@ -1151,7 +1151,7 @@ static int mount_check_fs( const char *dir, char *fstype )
        f = fopen("/proc/self/mounts", "r");
        if (!f)
                return 0;
-       while ((p = fgets(buf, LINELEN, f))) {
+       while (fgets(buf, LINELEN, f)) {
                p = index(buf, ' ');
                if( !p )
                        continue;
@@ -1444,7 +1444,7 @@ int detect_shared_rootfs(void)
        f = fopen("/proc/self/mountinfo", "r");
        if (!f)
                return 0;
-       while ((p = fgets(buf, LINELEN, f))) {
+       while (fgets(buf, LINELEN, f)) {
                for (p = buf, i=0; p && i < 4; i++)
                        p = index(p+1, ' ');
                if (!p)