]> git.baikalelectronics.ru Git - kernel.git/commit
af_unix: Clean up some sock_net() uses.
authorKuniyuki Iwashima <kuniyu@amazon.com>
Tue, 21 Jun 2022 17:19:08 +0000 (10:19 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 22 Jun 2022 11:59:43 +0000 (12:59 +0100)
commit890ad908a9534dbf265d7ddf14639497da3edca4
tree6fb613affc4be36634c393ad26c7de92dd051e3e
parent67cb5c7e830905ce69b5df49a8b87a57743ebc6a
af_unix: Clean up some sock_net() uses.

Some functions define a net pointer only for one-shot use.  Others call
sock_net() redundantly even when a net pointer is available.  Let's fix
these and make the code simpler.

Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/unix/af_unix.c
net/unix/diag.c