af_key: make use of BUG_ON macro
authorHariprasad Kelam <hariprasad.kelam@gmail.com>
Sat, 8 Jun 2019 09:00:50 +0000 (14:30 +0530)
committerDavid S. Miller <davem@davemloft.net>
Mon, 10 Jun 2019 02:56:42 +0000 (19:56 -0700)
commitde47c5d8e11dda678e4354eeb4235e58e92f7cd2
treebe2426a42ca9029c4de8338f532eefa34457ab3c
parent392096736a06bc9d8f2b42fd4bb1a44b245b9fed
af_key: make use of BUG_ON macro

fix below warnings reported by coccicheck

net/key/af_key.c:932:2-5: WARNING: Use BUG_ON instead of if condition
followed by BUG.
net/key/af_key.c:948:2-5: WARNING: Use BUG_ON instead of if condition
followed by BUG.

Signed-off-by: Hariprasad Kelam <hariprasad.kelam@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/key/af_key.c