From: Dongliang Mu Date: Fri, 18 Jun 2021 07:32:04 +0000 (+0800) Subject: net: caif: modify the label out_err to out X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=9fd2bc3206b31c8ff6d54d643730d4c3470471d6;p=linux.git net: caif: modify the label out_err to out Modify the label out_err to out to avoid the meanless kfree. Signed-off-by: Dongliang Mu Signed-off-by: David S. Miller --- diff --git a/net/caif/cfcnfg.c b/net/caif/cfcnfg.c index cac30e676ac94..23267c8db7c41 100644 --- a/net/caif/cfcnfg.c +++ b/net/caif/cfcnfg.c @@ -480,7 +480,7 @@ got_phyid: phyinfo = kzalloc(sizeof(struct cfcnfg_phyinfo), GFP_ATOMIC); if (!phyinfo) { res = -ENOMEM; - goto out_err; + goto out; } phy_layer->id = phyid;