OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f461f27
)
can: cc770: Fix likely misuse of | for &
author
Joe Perches
<joe@perches.com>
Wed, 30 May 2012 20:25:55 +0000
(13:25 -0700)
committer
Marc Kleine-Budde
<mkl@pengutronix.de>
Sun, 3 Jun 2012 16:59:21 +0000
(18:59 +0200)
Using | with a constant is always true.
Likely this should have be &.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/cc770/cc770_platform.c
patch
|
blob
|
history
diff --git
a/drivers/net/can/cc770/cc770_platform.c
b/drivers/net/can/cc770/cc770_platform.c
index
53115ee
..
688371c
100644
(file)
--- a/
drivers/net/can/cc770/cc770_platform.c
+++ b/
drivers/net/can/cc770/cc770_platform.c
@@
-154,7
+154,7
@@
static int __devinit cc770_get_platform_data(struct platform_device *pdev,
struct cc770_platform_data *pdata = pdev->dev.platform_data;
priv->can.clock.freq = pdata->osc_freq;
- if (priv->cpu_interface
|
CPUIF_DSC)
+ if (priv->cpu_interface
&
CPUIF_DSC)
priv->can.clock.freq /= 2;
priv->clkout = pdata->cor;
priv->bus_config = pdata->bcr;