From d7cb1b5f22948eba272e1a8844c75a2b87706fc4 Mon Sep 17 00:00:00 2001 From: Dave Barach Date: Fri, 9 Dec 2016 09:52:16 -0500 Subject: Coding standards cleanup for vnet/vnet/ip, VPP-255 Change-Id: I12892fa571cc50e0541d6463a8b68e1b618edd9f Signed-off-by: Dave Barach --- vnet/vnet/ip/udp_init.c | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) (limited to 'vnet/vnet/ip/udp_init.c') diff --git a/vnet/vnet/ip/udp_init.c b/vnet/vnet/ip/udp_init.c index 40ca032923c..1241ca4ab32 100644 --- a/vnet/vnet/ip/udp_init.c +++ b/vnet/vnet/ip/udp_init.c @@ -42,17 +42,17 @@ clib_error_t * udp_init (vlib_main_t * vm) { - ip_main_t * im = &ip_main; - ip_protocol_info_t * pi; - clib_error_t * error; + ip_main_t *im = &ip_main; + ip_protocol_info_t *pi; + clib_error_t *error; error = vlib_call_init_function (vm, ip_main_init); - if (! error) + if (!error) { pi = ip_get_protocol_info (im, IP_PROTOCOL_UDP); if (pi == 0) - return clib_error_return (0, "UDP protocol info AWOL"); + return clib_error_return (0, "UDP protocol info AWOL"); pi->format_header = format_udp_header; pi->unformat_pg_edit = unformat_pg_udp_header; } @@ -61,3 +61,11 @@ udp_init (vlib_main_t * vm) } VLIB_INIT_FUNCTION (udp_init); + +/* + * fd.io coding-style-patch-verification: ON + * + * Local Variables: + * eval: (c-set-style "gnu") + * End: + */ -- cgit 1.2.3-korg