diff options
author | IWASE Yusuke <iwase.yusuke0@gmail.com> | 2017-01-10 14:17:30 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2017-01-16 05:06:03 -0800 |
commit | 5c3ebc01fa8f8f99832983007b2b1ee0a217a22a (patch) | |
tree | c2c29ae51b2e672441f8f8ed3cba06fe4f449631 /packet/bgp | |
parent | b43326b2e3cfa4a63ac77c5ad05842a225948b6f (diff) |
packet/bgp: Fix unused return parameter "err"
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com>
Diffstat (limited to 'packet/bgp')
-rw-r--r-- | packet/bgp/bgp.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packet/bgp/bgp.go b/packet/bgp/bgp.go index c072a210..a3351558 100644 --- a/packet/bgp/bgp.go +++ b/packet/bgp/bgp.go @@ -3787,9 +3787,9 @@ func NewPrefixFromRouteFamily(afi uint16, safi uint8) (prefix AddrPrefixInterfac case RF_OPAQUE: prefix = &OpaqueNLRI{} default: - return nil, fmt.Errorf("unknown route family. AFI: %d, SAFI: %d", afi, safi) + err = fmt.Errorf("unknown route family. AFI: %d, SAFI: %d", afi, safi) } - return prefix, nil + return prefix, err } type BGPAttrFlag uint8 |