Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4556103yba; Tue, 9 Apr 2019 23:18:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqzbG4AizgKRn/I39zmN3WEogY6HNiWoZpNA69WhqDY6WWD3RITszf2EFxvqYgnuxrpP0m1i X-Received: by 2002:a63:20f:: with SMTP id 15mr38671477pgc.90.1554877082452; Tue, 09 Apr 2019 23:18:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554877082; cv=none; d=google.com; s=arc-20160816; b=qXclOsCW+WSaoFpSgh9tLDC9N6v/ukw17WILcsIiYHviwhGv4kTjk4163VfbCzSRI8 +QymBl++8jhHNBqSEdRbVGS2DQ9+nwcSM8Rv4CphDbo9j5Gm4DGUYzXZyWir+AW4UPmI rPP4TvFORXgEimzhiVDV38oH7tU26oCrUg6enq4CGlRx2/qAmVQsiei6PyxpgPQRTO3c RJOJhDzNk+LGBSZ0FDEWXjj3fb52nfDH7ApGr2VvjUl9EB217f1e74LNK2lkvLmubJoL WXUkEd5x8OXjRd75HiiFxL2uI5KlY3hX1rRmkouMslmCAQN1/kfZeMClzUHT65uW3zFn dEcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :subject:cc:to:from:date; bh=2PbWha88JdqeGCT74/ZqDP7tw9NvekpTUUWphrHwS30=; b=sICRG+vvVMdYm80FXX/fNDm28AsMMSgH4qU6NITkcUxCfgccCyniANJCi4oH+XYxf2 d5QmjzQfjdWSnGg+QP4WV2/7AdAIpOPMx4EFmJjP+mqir4LBZyYXEC89O7YpJD9iiKRJ TMvTfvbIYpHOcnntLwYCo7yewjuUw7qMMXGvOVNYDPH3TUoe7Tu4JGctmF3mtZ1iNjn4 14pkbnvWpYKsakSQDeYpE0Na42GA9kh5wV9uFo16cKdhInRL9jTCVpWYLZfKKMkMYyIK NlKoaMwVauuTMXUNC8LCOswTCUm8sydG7gRgijEokj9fn6NCkzvXGaMGp6/K6cmQVN9D 8qMw== 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 t4si10685007plb.234.2019.04.09.23.17.46; Tue, 09 Apr 2019 23:18:02 -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 S1727529AbfDJGQ5 (ORCPT + 99 others); Wed, 10 Apr 2019 02:16:57 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:33803 "EHLO mail2-relais-roc.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726230AbfDJGQ5 (ORCPT ); Wed, 10 Apr 2019 02:16:57 -0400 X-IronPort-AV: E=Sophos;i="5.60,332,1549926000"; d="scan'208";a="377960196" Received: from abo-75-106-68.mrs.modulonet.fr (HELO hadrien) ([85.68.106.75]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Apr 2019 08:16:54 +0200 Date: Wed, 10 Apr 2019 08:16:54 +0200 (CEST) From: Julia Lawall X-X-Sender: jll@hadrien To: Jianchao Wang cc: axboe@kernel.dk, viro@zeniv.linux.org.uk, linux-block@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, kbuild-all@01.org Subject: [PATCH] io_uring: fix ifnullfree.cocci warnings Message-ID: User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: kbuild test robot NULL check before kfree is not needed. Generated by: scripts/coccinelle/free/ifnullfree.cocci Fixes: b905f31ee046 ("io_uring: introduce inline reqs for IORING_SETUP_IOPOLL") CC: Jianchao Wang Signed-off-by: kbuild test robot Signed-off-by: Julia Lawall --- url: https://github.com/0day-ci/linux/commits/Jianchao-Wang/io_uring-introduce-inline-reqs-for-IORING_SETUP_IOPOLL/20190409-194746 :::::: branch date: 17 hours ago :::::: commit date: 17 hours ago io_uring.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -2597,8 +2597,7 @@ static void io_ring_ctx_free(struct io_r sock_release(ctx->ring_sock); #endif - if (ctx->inline_req_array) - kfree(ctx->inline_req_array); + kfree(ctx->inline_req_array); io_mem_free(ctx->sq_ring); io_mem_free(ctx->sq_sqes);