Explorar o código

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>
Alexey Zaytsev %!s(int64=16) %!d(string=hai) anos
pai
achega
24ec68fb8f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      drivers/isdn/mISDN/l1oip_codec.c

+ 1 - 1
drivers/isdn/mISDN/l1oip_codec.c

@@ -331,7 +331,7 @@ l1oip_4bit_alloc(int ulaw)
 	/* alloc conversion tables */
 	/* alloc conversion tables */
 	table_com = vmalloc(65536);
 	table_com = vmalloc(65536);
 	table_dec = vmalloc(512);
 	table_dec = vmalloc(512);
-	if (!table_com | !table_dec) {
+	if (!table_com || !table_dec) {
 		l1oip_4bit_free();
 		l1oip_4bit_free();
 		return -ENOMEM;
 		return -ENOMEM;
 	}
 	}