]> git.baikalelectronics.ru Git - kernel.git/commit
rtnetlink: move type calculation out of loop
authorChristian Brauner <christian@brauner.io>
Tue, 4 Sep 2018 19:53:51 +0000 (21:53 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 6 Sep 2018 05:27:11 +0000 (22:27 -0700)
commit5cbd0f9b6824f623435902a1076b68d8f342461f
tree90e6dc1b7e7dfacd0970a32400deada16b3bdce4
parent4adfbe6b5f0983e953194a6c5490b32f1784fdcb
rtnetlink: move type calculation out of loop

I don't see how the type - which is one of
RTM_{GETADDR,GETROUTE,GETNETCONF} - can change. So do the message type
calculation once before entering the for loop.

Signed-off-by: Christian Brauner <christian@brauner.io>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/rtnetlink.c