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)
committerDavid S. Miller <davem@davemloft.net>
Thu, 25 Aug 2016 04:57:20 +0000 (21:57 -0700)
commit627cc4add53c0470bfd118002669205d222d3a54
treed7f84ddce15c2fc86cca1289cf2c8f1ed98c3db7
parent9d490b4ee4d7d495a4f4908ea998d2a7355e0807
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.

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