Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1783122imm; Thu, 20 Sep 2018 02:50:44 -0700 (PDT) X-Google-Smtp-Source: ANB0VdY4FqbEpFZLbyeQwNt9U/JP97VFSFeWuLVNBDi4KvBXsvQeB5NwUUt27pBUyZ/xTdff9io4 X-Received: by 2002:a63:9551:: with SMTP id t17-v6mr35287623pgn.432.1537437044517; Thu, 20 Sep 2018 02:50:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537437044; cv=none; d=google.com; s=arc-20160816; b=UloCl4Wtf9cIg/R+0mWq8SEFEXC02iJ3j3tQrSZ7Epxzr6BnYzlRch1hcSfn3Z4nUK yhH4jPYenRVExztsiyldY9XhtG6LQPNJ13VVxMf3NbtJZl8sKfMYBhK/kHg1gpFe5r+L rH5QiCNNgj2NlwqCwJw2ECz5IAzO00U5t6CuevakiBNIpdMAdrGjq3MPEVf8SaOwgCKn Ec/wOF8qLyugeu5Q0uxTFqmD7LHRlxoCHfYZJv4YIHH47ElYTaGf5Ur8u3W+GqmCvqTe mTguELdZAvX61oXhIWBp5fsgkcYKpqEaHHU0EvJvyHqVKUKbiyBcH6lXwT7rDk/BevP/ XBkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=ZywV23yKItdqCNkro64cq0puMb8hbijXUUEvizyHuq0=; b=CCtHCX7rPOWguGeoJujgoHWtUt8JuHKRE/ADxaIfoQGFkElwcTwNiXsMwEr/BjACc5 lknw9g/I4W9ZvaBq0zFYHN9deML9eWy2Ty3AmX0GgbCFCJ/pkMdHC/V2qmcWfEQuTj/5 SW+8RcYvBKtgXMhdPzGeVJ1sTgd4QohqwLKeu0cBJRhXym0wOuQarbPFpRyR0vurBZDm pvoNPvEynQ0sqxWg0SaGFyX5Wq8h9c1lJxiwcJk7rdlXtYe+TTzOLMqRPoMtty7PNiW2 iSrSrzluqXtnLAgu4Tv7hJQJEyYBHIaOZWXmHGS1fscEgcSpn0UgU6GFmVmjtUBEYz7j YM4Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o6-v6si21619182pgp.631.2018.09.20.02.50.27; Thu, 20 Sep 2018 02:50:44 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387601AbeITPc4 (ORCPT + 99 others); Thu, 20 Sep 2018 11:32:56 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:12638 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2387489AbeITPcz (ORCPT ); Thu, 20 Sep 2018 11:32:55 -0400 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id B35C6BA0D2741; Thu, 20 Sep 2018 17:50:12 +0800 (CST) Received: from linux-ibm.site (10.175.102.37) by DGGEMS405-HUB.china.huawei.com (10.3.19.205) with Microsoft SMTP Server id 14.3.399.0; Thu, 20 Sep 2018 17:50:08 +0800 From: zhong jiang To: CC: , , , , Subject: [PATCH 0/6] net: remove redundant null pointer check before kfree_skb Date: Thu, 20 Sep 2018 17:37:40 +0800 Message-ID: <1537436266-41955-1-git-send-email-zhongjiang@huawei.com> X-Mailer: git-send-email 1.7.12.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.102.37] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The issue is detected with the help of Coccinelle. zhong jiang (6): net: tap: remove redundant null pointer check before kfree_skb net: cxgb3: remove redundant null pointer check before kfree_skb ipv4: remove redundant null pointer check before kfree_skb net: nci: remove redundant null pointer check before kfree_skb net: cxgb3_main: remove redundant null pointer check before kfree_skb ipv6: remove redundant null pointer check before kfree_skb drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c | 3 +-- drivers/net/ethernet/chelsio/cxgb3/cxgb3_offload.c | 3 +-- drivers/net/tap.c | 6 ++---- net/ipv4/ip_fragment.c | 3 +-- net/ipv6/af_inet6.c | 6 ++---- net/nfc/nci/uart.c | 6 ++---- 6 files changed, 9 insertions(+), 18 deletions(-) -- 1.7.12.4