]> git.baikalelectronics.ru Git - kernel.git/commit
sock_diag: Simplify sock_diag_handlers[] handling in __sock_diag_rcv_msg
authorMathias Krause <minipli@googlemail.com>
Sat, 23 Feb 2013 01:13:48 +0000 (01:13 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 23 Feb 2013 18:51:54 +0000 (13:51 -0500)
commit8ea29785a5441e1079bc163be3271d5940f9ba75
treebe10511f81dc57b40a3d747940082431fece50b6
parentb2d29ec64a88c30fc1bcaa6ae0195c02294d6370
sock_diag: Simplify sock_diag_handlers[] handling in __sock_diag_rcv_msg

The sock_diag_lock_handler() and sock_diag_unlock_handler() actually
make the code less readable. Get rid of them and make the lock usage
and access to sock_diag_handlers[] clear on the first sight.

Signed-off-by: Mathias Krause <minipli@googlemail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/sock_diag.c