projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3678b2d
)
can: rcar_canfd: rcar_canfd_probe(): fix plain integer in transceivers[] init
author
Geert Uytterhoeven
<geert+renesas@glider.be>
Wed, 29 Mar 2023 06:40:55 +0000
(08:40 +0200)
committer
Marc Kleine-Budde
<mkl@pengutronix.de>
Tue, 4 Apr 2023 14:48:42 +0000
(16:48 +0200)
Fix the following compile warning with C=1:
| drivers/net/can/rcar/rcar_canfd.c:1852:59: warning: Using plain integer as NULL pointer
Fixes: a0340df7eca4f28e ("can: rcar_canfd: Add transceiver support")
Reported-by: Jakub Kicinski <kuba@kernel.org>
Link:
https://lore.kernel.org/r/20230328145658.7fdbc394@kernel.org
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Steen Hegelund <Steen.Hegelund@microchip.com>
Link:
https://lore.kernel.org/all/7f7b0dde0caa2d2977b4fb5b65b63036e75f5022.1680071972.git.geert+renesas@glider.be
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/rcar/rcar_canfd.c
patch
|
blob
|
history
diff --git
a/drivers/net/can/rcar/rcar_canfd.c
b/drivers/net/can/rcar/rcar_canfd.c
index 701311dabab36c3136caa24ffebcb126de10edf6..963c42f4375595ae3555744217fe8c9d00e1015d 100644
(file)
--- a/
drivers/net/can/rcar/rcar_canfd.c
+++ b/
drivers/net/can/rcar/rcar_canfd.c
@@
-1848,7
+1848,7
@@
static void rcar_canfd_channel_remove(struct rcar_canfd_global *gpriv, u32 ch)
static int rcar_canfd_probe(struct platform_device *pdev)
{
- struct phy *transceivers[RCANFD_NUM_CHANNELS] = {
0
, };
+ struct phy *transceivers[RCANFD_NUM_CHANNELS] = {
NULL
, };
const struct rcar_canfd_hw_info *info;
struct device *dev = &pdev->dev;
void __iomem *addr;