Files
linux/drivers/net
Nathan Chancellor 8ac1ee6f4d net/mlx4: Use cpumask_available for eq->affinity_mask
Clang warns that the address of a pointer will always evaluated as true
in a boolean context:

drivers/net/ethernet/mellanox/mlx4/eq.c:243:11: warning: address of
array 'eq->affinity_mask' will always evaluate to 'true'
[-Wpointer-bool-conversion]
        if (!eq->affinity_mask || cpumask_empty(eq->affinity_mask))
            ~~~~~^~~~~~~~~~~~~
1 warning generated.

Use cpumask_available, introduced in commit f7e30f01a9 ("cpumask: Add
helper cpumask_available()"), which does the proper checking and avoids
this warning.

Link: https://github.com/ClangBuiltLinux/linux/issues/86
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-09-21 19:20:22 -07:00
..
2018-09-18 20:14:19 -07:00
2018-06-12 16:19:22 -07:00
2018-07-11 23:10:19 -07:00
2018-07-20 12:33:37 -07:00
2018-05-28 23:02:22 -04:00
2018-05-28 22:59:54 -04:00
2018-07-29 12:57:26 -07:00
2018-09-16 15:33:50 -07:00