diff options
| author | Nathan Chancellor <[email protected]> | 2018-09-21 12:39:07 -0700 |
|---|---|---|
| committer | Jeff Kirsher <[email protected]> | 2018-10-03 12:33:34 -0700 |
| commit | 92fb7aaff8dd18636cb999a5878508124cc76ac5 (patch) | |
| tree | 0ca5e19d3096c9efebd5d1b36059b0afe080e658 /tools/perf/scripts/python/sched-migration.py | |
| parent | 43ade6ad18416b8fd5bb3c9e9789faa666527eec (diff) | |
i40e: Remove unnecessary print statement
Clang warns that the address of a pointer will always evaluated as true
in a boolean context.
drivers/net/ethernet/intel/i40e/i40e_debugfs.c:136:9: warning: address
of array 'vsi->active_vlans' will always evaluate to 'true'
[-Wpointer-bool-conversion]
vsi->active_vlans ? "<valid>" : "<null>");
~~~~~^~~~~~~~~~~~ ~
./include/linux/device.h:1431:33: note: expanded from macro 'dev_info'
_dev_info(dev, dev_fmt(fmt), ##__VA_ARGS__)
^~~~~~~~~~~
1 warning generated.
Given that the statement shows that active_vlans is always valid, just
remove the statement since it's not giving any useful information.
Link: https://github.com/ClangBuiltLinux/linux/issues/82
Signed-off-by: Nathan Chancellor <[email protected]>
Tested-by: Andrew Bowers <[email protected]>
Signed-off-by: Jeff Kirsher <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions