diff --git a/pkg/ip/ip_test.go b/pkg/ip/ip_test.go
index <HASH>..<HASH> 100644
--- a/pkg/ip/ip_test.go
+++ b/pkg/ip/ip_test.go
@@ -136,7 +136,7 @@ func (s *IPTestSuite) TestRemoveCIDRs(c *C) {
 
 	// Cannot remove CIDRs that are of a different address family.
 	removeCIDRs = []*net.IPNet{createIPNet("fd44:7089:ff32:712b::", 66, int(ipv6BitLen))}
-	allowedCIDRs, err = RemoveCIDRs(allowCIDRs, removeCIDRs)
+	_, err = RemoveCIDRs(allowCIDRs, removeCIDRs)
 	c.Assert(err, NotNil)
 
 	//IPv6 tests
pkg/ip: Assign value to allowedCIDRs variable only if it's used

The first value returned by RemoveCIDRs is not always used and
it can be skipped once.