@@ -66,35 +66,35 @@ int ipoib_set_netlink_message(Link *link, sd_netlink_message *m) {
6666
6767 r = sd_netlink_message_set_flags (m , NLM_F_REQUEST | NLM_F_ACK );
6868 if (r < 0 )
69- return log_link_debug_errno ( link , r , "Could not set netlink flags: %m" ) ;
69+ return r ;
7070
7171 r = sd_netlink_message_open_container (m , IFLA_LINKINFO );
7272 if (r < 0 )
73- return log_link_debug_errno ( link , r , "Failed to open IFLA_LINKINFO container: %m" ) ;
73+ return r ;
7474
7575 r = sd_netlink_message_open_container_union (m , IFLA_INFO_DATA , link -> kind );
7676 if (r < 0 )
77- return log_link_debug_errno ( link , r , "Could not open IFLA_INFO_DATA container: %m" ) ;
77+ return r ;
7878
7979 if (link -> network -> ipoib_mode >= 0 ) {
8080 r = sd_netlink_message_append_u16 (m , IFLA_IPOIB_MODE , link -> network -> ipoib_mode );
8181 if (r < 0 )
82- return log_link_debug_errno ( link , r , "Could not append IFLA_IPOIB_MODE attribute: %m" ) ;
82+ return r ;
8383 }
8484
8585 if (link -> network -> ipoib_umcast >= 0 ) {
8686 r = sd_netlink_message_append_u16 (m , IFLA_IPOIB_UMCAST , link -> network -> ipoib_umcast );
8787 if (r < 0 )
88- return log_link_debug_errno ( link , r , "Could not append IFLA_IPOIB_UMCAST attribute: %m" ) ;
88+ return r ;
8989 }
9090
9191 r = sd_netlink_message_close_container (m );
9292 if (r < 0 )
93- return log_link_debug_errno ( link , r , "Failed to close IFLA_INFO_DATA container: %m" ) ;
93+ return r ;
9494
9595 r = sd_netlink_message_close_container (m );
9696 if (r < 0 )
97- return log_link_debug_errno ( link , r , "Failed to close IFLA_LINKINFO container: %m" ) ;
97+ return r ;
9898
9999 return 0 ;
100100}
0 commit comments