]> git.baikalelectronics.ru Git - kernel.git/commit
socket: fix set not used warning
authorstephen hemminger <stephen@networkplumber.org>
Mon, 24 Jul 2017 17:25:22 +0000 (10:25 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 25 Jul 2017 19:31:37 +0000 (12:31 -0700)
commit1d5fd1a4efb58c48fb087d0f8e1654385c4ba61e
treeb570331c2ce49ad92d9eb374893421234a2b0e42
parent0a449ada1d03b64eabb77820c2fe8a978d1b2354
socket: fix set not used warning

The variable owned_by_user is always set, but only used
when kernel is configured with LOCKDEP enabled.

Get rid of the warning by moving the code to put the call
to owned_by_user into the the rcu_protected call.

Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/socket.c