Commit eef0dc7e authored by Jiapeng Chong's avatar Jiapeng Chong Committed by Jakub Kicinski

ROSE: Remove unused code and clean up some inconsistent indenting

Eliminate the follow smatch warning:

net/rose/rose_route.c:1136 rose_node_show() warn: inconsistent
indenting.
Reported-by: default avatarAbaci Robot <abaci@linux.alibaba.com>
Signed-off-by: default avatarJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Link: https://lore.kernel.org/r/20220507034207.18651-1-jiapeng.chong@linux.alibaba.comSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 9c095bd0
...@@ -1128,22 +1128,15 @@ static int rose_node_show(struct seq_file *seq, void *v) ...@@ -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"); seq_puts(seq, "address mask n neigh neigh neigh\n");
else { else {
const struct rose_node *rose_node = v; 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", seq_printf(seq, "%-10s %04d %d",
rose2asc(rsbuf, &rose_node->address), rose2asc(rsbuf, &rose_node->address),
rose_node->mask, rose_node->mask,
rose_node->count); rose_node->count);
for (i = 0; i < rose_node->count; i++) for (i = 0; i < rose_node->count; i++)
seq_printf(seq, " %05d", seq_printf(seq, " %05d", rose_node->neighbour[i]->number);
rose_node->neighbour[i]->number);
seq_puts(seq, "\n"); seq_puts(seq, "\n");
/* } */
} }
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment