modprobe-small: fix thinko in previous commit
authorDenys Vlasenko <vda.linux@googlemail.com>
Fri, 13 Feb 2015 10:53:33 +0000 (11:53 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Fri, 13 Feb 2015 10:53:33 +0000 (11:53 +0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
modutils/modprobe-small.c

index 598965968f826be214eaf8da588bee2b20c6ad06..ed177bb9bc67f37bad7f1e0d3b1fdf81f329fa97 100644 (file)
@@ -578,7 +578,7 @@ static int already_loaded(const char *name)
        }
        fclose(fp);
 
-       return ret | 1;
+       return ret & 1;
 }
 #else
 #define already_loaded(name) 0