Skip to content

Commit

Permalink
ROSE: Remove unused code and clean up some inconsistent indenting
Browse files Browse the repository at this point in the history
Eliminate the follow smatch warning:

net/rose/rose_route.c:1136 rose_node_show() warn: inconsistent
indenting.

Reported-by: Abaci Robot <[email protected]>
Signed-off-by: Jiapeng Chong <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
  • Loading branch information
Jiapeng Chong authored and kuba-moo committed May 10, 2022
1 parent 9c095bd commit eef0dc7
Showing 1 changed file with 9 additions and 16 deletions.
25 changes: 9 additions & 16 deletions net/rose/rose_route.c
Original file line number Diff line number Diff line change
Expand Up @@ -1128,22 +1128,15 @@ static int rose_node_show(struct seq_file *seq, void *v)
seq_puts(seq, "address mask n neigh neigh neigh\n");
else {
const struct rose_node *rose_node = v;
/* if (rose_node->loopback) {
seq_printf(seq, "%-10s %04d 1 loopback\n",
rose2asc(rsbuf, &rose_node->address),
rose_node->mask);
} else { */
seq_printf(seq, "%-10s %04d %d",
rose2asc(rsbuf, &rose_node->address),
rose_node->mask,
rose_node->count);

for (i = 0; i < rose_node->count; i++)
seq_printf(seq, " %05d",
rose_node->neighbour[i]->number);

seq_puts(seq, "\n");
/* } */
seq_printf(seq, "%-10s %04d %d",
rose2asc(rsbuf, &rose_node->address),
rose_node->mask,
rose_node->count);

for (i = 0; i < rose_node->count; i++)
seq_printf(seq, " %05d", rose_node->neighbour[i]->number);

seq_puts(seq, "\n");
}
return 0;
}
Expand Down

0 comments on commit eef0dc7

Please sign in to comment.