提交 dc605dbd 编写于 作者: J Joe Perches 提交者: Marc Kleine-Budde

can: cc770: Fix likely misuse of | for &

Using | with a constant is always true.
Likely this should have be &.
Signed-off-by: NJoe Perches <joe@perches.com>
Signed-off-by: NMarc Kleine-Budde <mkl@pengutronix.de>
上级 f461f27a
...@@ -154,7 +154,7 @@ static int __devinit cc770_get_platform_data(struct platform_device *pdev, ...@@ -154,7 +154,7 @@ static int __devinit cc770_get_platform_data(struct platform_device *pdev,
struct cc770_platform_data *pdata = pdev->dev.platform_data; struct cc770_platform_data *pdata = pdev->dev.platform_data;
priv->can.clock.freq = pdata->osc_freq; 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->can.clock.freq /= 2;
priv->clkout = pdata->cor; priv->clkout = pdata->cor;
priv->bus_config = pdata->bcr; priv->bus_config = pdata->bcr;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册