ROSE: Remove unused code and clean up some inconsistent indenting
Subsystems (2)
PATCH 1/1 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 Abaci Robot <[email protected]>
Signed-off-by Jiapeng Chong <[email protected]>
--- net/rose/rose_route.c | 25 +++++++++---------------- 1 file changed, 9 insertions(+), 16 deletions(-)
net/rose/rose_route.c +9 -16
@@ -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 ; }
Signature · 1 line
2.20.1.7.g153144c
This patch was applied to netdev/net-next.git (master) by Jakub Kicinski <[email protected]>:
Hello:
This patch was applied to netdev/net-next.git (master) by Jakub Kicinski <[email protected]>:
Quoted 9 lines · On Sat, 7 May 2022 11:42:07 +0800 you wrote:
Eliminate the follow smatch warning:
net/rose/rose_route.c:1136rose_node_show()warn: inconsistent indenting.Reported-by Abaci Robot <[email protected]>Signed-off-by Jiapeng Chong <[email protected]>[...]
Here is the summary with links:
- [NET] ROSE: Remove unused code and clean up some inconsistent indenting
https://git.kernel.org/netdev/net-next/c/eef0dc7e517e
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html