Skip to content

Commit

Permalink
trivial: Fix dubious bitwise 'or' usage spotted by sparse.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alexey Zaytsev authored and Jiri Kosina committed Mar 30, 2009
1 parent e713a21 commit 24ec68f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/isdn/mISDN/l1oip_codec.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 24ec68f

Please sign in to comment.