Re: [PATCH] net: dsa: sja1105: Do not use address of compatible member in sja1105_check_device_id

2020-08-24 Thread David Miller
From: Nathan Chancellor Date: Fri, 21 Aug 2020 15:25:16 -0700 > 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;

Re: [PATCH] net: dsa: sja1105: Do not use address of compatible member in sja1105_check_device_id

2020-08-21 Thread Vladimir Oltean
On Fri, Aug 21, 2020 at 03:25:16PM -0700, Nathan Chancellor wrote: > 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;

Re: [PATCH] net: dsa: sja1105: Do not use address of compatible member in sja1105_check_device_id

2020-08-21 Thread Florian Fainelli
On 8/21/20 3:25 PM, Nathan Chancellor wrote: > 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++) { >

[PATCH] net: dsa: sja1105: Do not use address of compatible member in sja1105_check_device_id

2020-08-21 Thread Nathan Chancellor
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