Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6240420imu; Sun, 2 Dec 2018 13:15:53 -0800 (PST) X-Google-Smtp-Source: AFSGD/WYiY9weRTlLTQOYeuGbH5Dts58HgAAOtwxu9wd+HmXj1iRgFdti3iKjSONEv8d79Alq1Gt X-Received: by 2002:a17:902:a03:: with SMTP id 3mr13627728plo.112.1543785353018; Sun, 02 Dec 2018 13:15:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543785352; cv=none; d=google.com; s=arc-20160816; b=NX0uyUCfCmOM350z5Opgmv5VJRbQ/B8xmYI8Zl08xqLQDMAip6RNEbJbgKHGCxtQbJ M1LVOCiFFobGy1aEJMvEOBnRNnskpO3QCjm3e1hERJOJOnnPB05OVDpu4voGEX5/n4pb RNjVEqSIcz5Vj+JIqeT22hJJbSkILDL0T/9yma015oAY6CYGk9ejG+KMgach+hXVQK9R JQuVedXI3gbnVWbwwukJfiqQIQcZoTc0kbSBq/PT0qRbHgYFADhj/tCZrL10sBnEgwGM o4THcFQ7n4xuSHgf8kxY8s4/rgQ0JGqf2lDmAcY/pgzNxpSS83ZmDn/66zgTMC3pYI15 5jvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:user-agent:date :message-id:mime-version:to:from:subject; bh=0PnhbFAE5pljHUwKvep2nkLR7NVm8CcQBQqryexh7xk=; b=kP+UE4NQZ2GgQEWTQVGRUKiJ0MJJQQrxtDBLaAkr1dcE1gjWbgL8a8Qpd5gRfo7UgO cB2Z2tHdviEKJOkDSrjsTueohfxMXUAR5Q3x9YgH/zvynpTgjPVwixRy8XtQqP/+q3CQ kj1yAyrEQ76YAdJPmx9pg0LTMBVLvA5ZDE7rq2RJJ7I5qbFCYNSIBSvaO/Y+SzKa9Gx3 6hFRbsAVfSyqaJFYxlP231VTJ9gCLXU51kiSMJru713TRHDIyH5da8UkBkqt/Tk+3YzJ oVf3qgxVWA9RYPMjbHxkDjL1s5XxUTPKUGK+zfLSvl2pb6gIep3lQC3C9YK+ljJALvAa 22NQ== 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 y141si13138024pfc.180.2018.12.02.13.15.38; Sun, 02 Dec 2018 13:15:52 -0800 (PST) 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 S1725897AbeLBVOz (ORCPT + 99 others); Sun, 2 Dec 2018 16:14:55 -0500 Received: from www17.your-server.de ([213.133.104.17]:57398 "EHLO www17.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725779AbeLBVOz (ORCPT ); Sun, 2 Dec 2018 16:14:55 -0500 Received: from [78.46.172.3] (helo=sslproxy06.your-server.de) by www17.your-server.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89_1) (envelope-from ) id 1gTYlv-00017X-Vo for linux-kernel@vger.kernel.org; Sun, 02 Dec 2018 21:55:24 +0100 Received: from [2a02:908:4c28:3f60:fff6:43c5:695c:41d6] (helo=localhost.localdomain) by sslproxy06.your-server.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89) (envelope-from ) id 1gTYlv-00036z-Qk for linux-kernel@vger.kernel.org; Sun, 02 Dec 2018 21:55:23 +0100 Subject: Cocci spatch "ifnullfree" - v4.20-rc4 From: Thomas Meyer To: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 X-Patch: Cocci X-Mailer: DiffSplit Message-ID: <1543760930050-1499171309-0-diffsplit-thomas@m3y3r.de> Date: Sun, 02 Dec 2018 21:52:11 +0100 User-Agent: Evolution 3.30.2 (3.30.2-2.fc29) Content-Transfer-Encoding: 7bit X-Authenticated-Sender: thomas@m3y3r.de X-Virus-Scanned: Clear (ClamAV 0.100.2/25173/Sun Dec 2 15:13:44 2018) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org NULL check before some freeing functions is not needed. Found by coccinelle spatch "free/ifnullfree.cocci" Run against version v4.20-rc4 P.S. If you find this email unwanted, set up a procmail rule junking on the header: X-Patch: Cocci