aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-add.c
diff options
context:
space:
mode:
authorNathan Chancellor <[email protected]>2020-08-21 15:25:16 -0700
committerDavid S. Miller <[email protected]>2020-08-24 16:13:25 -0700
commit5978fac03ea3faf793dffeedcbe60dd8da673f89 (patch)
treeba4b177895c845b07762e370b169605ff3180ad1 /lib/mpi/mpi-add.c
parentbe769db2f95861cc8c7c8fedcc71a8c39b803b10 (diff)
net: dsa: sja1105: Do not use address of compatible member in sja1105_check_device_id
Clang warns: drivers/net/dsa/sja1105/sja1105_main.c:3418:38: warning: address of array 'match->compatible' will always evaluate to 'true' [-Wpointer-bool-conversion] for (match = sja1105_dt_ids; match->compatible; match++) { ~~~ ~~~~~~~^~~~~~~~~~ 1 warning generated. We should check the value of the first character in compatible to see if it is empty or not. This matches how the rest of the tree iterates over IDs. Fixes: 0b0e299720bb ("net: dsa: sja1105: use detected device id instead of DT one on mismatch") Link: https://github.com/ClangBuiltLinux/linux/issues/1139 Signed-off-by: Nathan Chancellor <[email protected]> Acked-by: Florian Fainelli <[email protected]> Acked-by: Vladimir Oltean <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-add.c')
0 files changed, 0 insertions, 0 deletions