aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2015-02-13 11:53:33 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2015-02-13 11:53:33 +0100
commit402afe1cc69ea505c9bf82ffe06e51ffecf694df (patch)
tree83d2ca101227ff1fa0d3a44da39e4634307d6fb2
parent1fd844267c3ad60e9122e141768e823e6ad74a28 (diff)
downloadbusybox-402afe1cc69ea505c9bf82ffe06e51ffecf694df.tar.gz
modprobe-small: fix thinko in previous commit
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-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 598965968..ed177bb9b 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