Merge tag 'io_uring-5.15-2021-09-11' of git://git.kernel.dk/linux-block
[linux-2.6-microblaze.git] / net / ipv6 / seg6.c
index d2f8138..e412817 100644 (file)
@@ -122,9 +122,6 @@ static int seg6_genl_sethmac(struct sk_buff *skb, struct genl_info *info)
        hinfo = seg6_hmac_info_lookup(net, hmackeyid);
 
        if (!slen) {
-               if (!hinfo)
-                       err = -ENOENT;
-
                err = seg6_hmac_info_del(net, hmackeyid);
 
                goto out_unlock;