mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-30 20:30:32 -04:00
Staging: tm6000: silence Sparse warning "dubious: !x | !y"
Bitwise and logical or are the equivalent here, so this doesn't affect runtime, but logical or was intended. The original code causes a warning in Sparse: "warning: dubious: !x | !y" Signed-off-by: Dan Carpenter <error27@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
aa96646daa
commit
b01627c608
@@ -374,7 +374,7 @@ int tm6000_ir_init(struct tm6000_core *dev)
|
||||
|
||||
ir = kzalloc(sizeof(*ir), GFP_KERNEL);
|
||||
rc = rc_allocate_device();
|
||||
if (!ir | !rc)
|
||||
if (!ir || !rc)
|
||||
goto out;
|
||||
|
||||
/* record handles to ourself */
|
||||
|
||||
Reference in New Issue
Block a user