Skip to content

Commit 5b9b0a8

Browse files
nathanchancedavem330
authored andcommitted
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: ClangBuiltLinux#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>
1 parent bccc171 commit 5b9b0a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/decnet/dn_dev.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1363,7 +1363,7 @@ static int dn_dev_seq_show(struct seq_file *seq, void *v)
13631363

13641364
seq_printf(seq, "%-8s %1s %04u %04u %04lu %04lu"
13651365
" %04hu %03d %02x %-10s %-7s %-7s\n",
1366-
dev->name ? dev->name : "???",
1366+
dev->name,
13671367
dn_type2asc(dn_db->parms.mode),
13681368
0, 0,
13691369
dn_db->t3, dn_db->parms.t3,

0 commit comments

Comments
 (0)