Skip to content
Commit 87ccbb1f authored by Christian Brauner's avatar Christian Brauner Committed by David S. Miller
Browse files

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: default avatarChristian Brauner <christian@brauner.io>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 6ecf4c37
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