linux/drivers/net/ethernet/cavium
Guenter Roeck fc25f9f631 net: thunderx: Drop unnecessary NULL check after container_of
The result of container_of() operations is never NULL unless the embedded
element is the first element of the structure. This is not the case here.
The NULL check is therefore unnecessary and misleading. Remove it.

This change was made automatically with the following Coccinelle script.

@@
type t;
identifier v;
statement s;
@@

<+...
(
  t v = container_of(...);
|
  v = container_of(...);
)
  ...
  when != v
- if (\( !v \| v == NULL \) ) s
...+>

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
2021-05-14 15:00:53 -07:00
..
common net: cavium: Fix a bunch of kerneldoc parameter issues 2020-09-09 14:11:58 -07:00
liquidio Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2021-04-17 11:08:07 -07:00
octeon of: net: pass the dst buffer to of_get_mac_address() 2021-04-13 14:35:02 -07:00
thunder net: thunderx: Drop unnecessary NULL check after container_of 2021-05-14 15:00:53 -07:00
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00