summaryrefslogtreecommitdiff
authorDenys Vlasenko <vda.linux@googlemail.com>2015-02-13 10:53:33 (GMT)
committer Denys Vlasenko <vda.linux@googlemail.com>2015-02-13 10:53:33 (GMT)
commit402afe1cc69ea505c9bf82ffe06e51ffecf694df (patch)
tree83d2ca101227ff1fa0d3a44da39e4634307d6fb2
parent1fd844267c3ad60e9122e141768e823e6ad74a28 (diff)
downloadbusybox-402afe1cc69ea505c9bf82ffe06e51ffecf694df.zip
busybox-402afe1cc69ea505c9bf82ffe06e51ffecf694df.tar.gz
busybox-402afe1cc69ea505c9bf82ffe06e51ffecf694df.tar.bz2
modprobe-small: fix thinko in previous commit
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat
-rw-r--r--modutils/modprobe-small.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/modutils/modprobe-small.c b/modutils/modprobe-small.c
index 5989659..ed177bb 100644
--- a/modutils/modprobe-small.c
+++ b/modutils/modprobe-small.c
@@ -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