summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexey Zaytsev <alexey.zaytsev@gmail.com>2009-01-10 02:48:05 +0300
committerJiri Kosina <jkosina@suse.cz>2009-03-30 15:21:57 +0200
commit24ec68fb8f0a36a9063f3e72039316e718b628ed (patch)
tree64cbe85c7a99f6834bdb22e89c83a4684c0b1df0
parente713a21d8251a4c91772f592af46407dfb0b2e4f (diff)
downloadop-kernel-dev-24ec68fb8f0a36a9063f3e72039316e718b628ed.zip
op-kernel-dev-24ec68fb8f0a36a9063f3e72039316e718b628ed.tar.gz
trivial: Fix dubious bitwise 'or' usage spotted by sparse.
It doesn't change the semantics, but it looks like the logical 'or' was meant to be used here. Signed-off-by: Alexey Zaytsev <alexey.zaytsev@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
-rw-r--r--drivers/isdn/mISDN/l1oip_codec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/isdn/mISDN/l1oip_codec.c b/drivers/isdn/mISDN/l1oip_codec.c
index 2ec4b28..e4ecba3 100644
--- a/drivers/isdn/mISDN/l1oip_codec.c
+++ b/drivers/isdn/mISDN/l1oip_codec.c
@@ -331,7 +331,7 @@ l1oip_4bit_alloc(int ulaw)
/* alloc conversion tables */
table_com = vmalloc(65536);
table_dec = vmalloc(512);
- if (!table_com | !table_dec) {
+ if (!table_com || !table_dec) {
l1oip_4bit_free();
return -ENOMEM;
}
OpenPOWER on IntegriCloud