summaryrefslogtreecommitdiffstats
path: root/drivers/staging/tm6000
diff options
context:
space:
mode:
authorDan Carpenter <error27@gmail.com>2011-01-03 08:47:40 +0300
committerGreg Kroah-Hartman <gregkh@suse.de>2011-01-21 12:14:47 -0800
commitb01627c608d97b5246eb7a4b75c40f2a1fb4dc30 (patch)
treefdd0dc31f47a6e9c9ce1566749b33da244d6543f /drivers/staging/tm6000
parentaa96646daa15d6ac05addc7db7272dd5787c6953 (diff)
downloadtalos-op-linux-b01627c608d97b5246eb7a4b75c40f2a1fb4dc30.tar.gz
talos-op-linux-b01627c608d97b5246eb7a4b75c40f2a1fb4dc30.zip
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>
Diffstat (limited to 'drivers/staging/tm6000')
-rw-r--r--drivers/staging/tm6000/tm6000-input.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/tm6000/tm6000-input.c b/drivers/staging/tm6000/tm6000-input.c
index 21e7da40f049..01fcbbe38409 100644
--- a/drivers/staging/tm6000/tm6000-input.c
+++ b/drivers/staging/tm6000/tm6000-input.c
@@ -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 */
OpenPOWER on IntegriCloud