]> git.baikalelectronics.ru Git - kernel.git/commit
decnet: Remove unnecessary check for dev->name
authorNathan Chancellor <natechancellor@gmail.com>
Fri, 21 Sep 2018 19:30:34 +0000 (12:30 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 22 Sep 2018 02:48:36 +0000 (19:48 -0700)
commite42b31b12480b8cf277f3c04a35d3ff7dc99317a
treeab8b64e22688d42e88e4d3d5b093ab8af36cdb9b
parentfdb3af175a23908873d238df45927aed2f869ea4
decnet: Remove unnecessary check for dev->name

Clang warns that the address of a pointer will always evaluated as true
in a boolean context.

net/decnet/dn_dev.c:1366:10: warning: address of array 'dev->name' will
always evaluate to 'true' [-Wpointer-bool-conversion]
                                dev->name ? dev->name : "???",
                                ~~~~~^~~~ ~
1 warning generated.

Link: https://github.com/ClangBuiltLinux/linux/issues/116
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Reviewed-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/decnet/dn_dev.c