]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
trivial: Fix dubious bitwise 'or' usage spotted by sparse.
authorAlexey Zaytsev <alexey.zaytsev@gmail.com>
Fri, 9 Jan 2009 23:48:05 +0000 (02:48 +0300)
committerJiri Kosina <jkosina@suse.cz>
Mon, 30 Mar 2009 13:21:57 +0000 (15:21 +0200)
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>
drivers/isdn/mISDN/l1oip_codec.c

index 2ec4b28d9edc85aecf80c7007c3ea0f4038eb62a..e4ecba3d48dfcf75703aee66c5a443b9f39c2c62 100644 (file)
@@ -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;
        }