net: diag: slightly refactor the inet_diag_bc_audit error checks.
authorLorenzo Colitti <lorenzo@google.com>
Wed, 24 Aug 2016 06:46:25 +0000 (15:46 +0900)
committerAmit Pundir <amit.pundir@linaro.org>
Wed, 12 Oct 2016 12:04:22 +0000 (17:34 +0530)
commite10225d940a6a5c4da393487129e4f0938f5402f
tree2cec83dd2bf2f829437215fc1416af02cfc0d79d
parent7b6ff82f7430d44f60f7784aeb2d392509c9f2d6
net: diag: slightly refactor the inet_diag_bc_audit error checks.

This simplifies the code a bit and also allows inet_diag_bc_audit
to send to userspace an error that isn't EINVAL.

[cherry-pick of net-next 627cc4add53c0470bfd118002669205d222d3a54]

Change-Id: Iee3d2bbb19f3110d71f0698ffb293f9bdffc8ef1
Signed-off-by: Lorenzo Colitti <lorenzo@google.com>
Acked-by: David Ahern <dsa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/inet_diag.c