Skip to content

Commit

Permalink
Staging: tm6000: silence Sparse warning "dubious: !x | !y"
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dan Carpenter authored and Greg Kroah-Hartman committed Jan 21, 2011
1 parent aa96646 commit b01627c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/tm6000/tm6000-input.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit b01627c

Please sign in to comment.