Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1052509pxf; Thu, 25 Mar 2021 23:14:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwgJ0ZQjwtJs1LaaDg5merLyzr2yqOATnfOJx1CsnaxhnAE9KIcfaRS5U7X954Iy9kyERlq X-Received: by 2002:aa7:c6da:: with SMTP id b26mr13227733eds.254.1616739276145; Thu, 25 Mar 2021 23:14:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616739276; cv=none; d=google.com; s=arc-20160816; b=uJKa8j00vWypXQy869KhEVljGmTqJ3ozU8SHCdfWvaRadFFUFCd3ZkMPLnjiUYyEvo DhbGtcV+ns+5As6ZO2H7W34FVHohb8mQ+eJsRiRjftrFEMJywoAK4/kPqRE+jTyyEs+L dBiuy8J1jzwTvKlqLuqKSt8bWSVuy31sgKLr8AUWituYv5MYOwkMoVmP9cALaKa9J2/f Nrvvt80G2RQsqfsHaOMiO0OUSUFa6Th2PXeHgyi8zgM1m1IG+UYww0cdHgEAE4zq1arH VgnfPf9eDztXrReOV2iuN0L3bn/bo1UzxL0MT68y8JKBOU8t6VR7JsJkyi7/RRE6DXg3 lXWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=HVffRheGZvUm096i8rL3qZdYAPWZa2jcLg62qh4EMbg=; b=qcQHsqk3nfF4B3Z2OWDb+0e+7j3OPxxQwwQzbrd7v66756X77LiBnpyK+AXRTa/Lus HGEA3ZK4M707rsBHqAGTBKZCX3RpUa4dCg9BBoDOY5oEbDgZgGwGEjDF0bbykUD9gyKm U4FtKMhZwJQzSPZvw/uuhu5IOo6ypl9vnetEb2Ia0oWYAENxMq6/v234vHDNGSuHInrS NX9v+mcrye8JU+KKGU/vL8vIYWxqVVzn3YWmjgKSDZ1hG/hB4qj+eDc4En7T79gk+kOb anTBLs2cAzKmfh2OnfDmVsFCoRnyU1tKrU09q18kFv8eJCNQIXsFNqs4vXEBF8/8Kq/c HShg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@axtens.net header.s=google header.b=BN177VN4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s9si5912392edc.296.2021.03.25.23.14.13; Thu, 25 Mar 2021 23:14:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@axtens.net header.s=google header.b=BN177VN4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229889AbhCZGNR (ORCPT + 99 others); Fri, 26 Mar 2021 02:13:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57190 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229871AbhCZGMt (ORCPT ); Fri, 26 Mar 2021 02:12:49 -0400 Received: from mail-pl1-x631.google.com (mail-pl1-x631.google.com [IPv6:2607:f8b0:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 34E43C0613AA for ; Thu, 25 Mar 2021 23:12:49 -0700 (PDT) Received: by mail-pl1-x631.google.com with SMTP id w11so405028ply.6 for ; Thu, 25 Mar 2021 23:12:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axtens.net; s=google; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=HVffRheGZvUm096i8rL3qZdYAPWZa2jcLg62qh4EMbg=; b=BN177VN4tIki5x7mq197cJpgGWmB/tDhiLj5PpVbW40dTDlstqyj7/uB0+ZhaiN21g I7v0gN6JcwN1MgwK2tedFC1HTPpxiphCtz8xY9bk2hM54Z6Ju8Z+Xe0Aty8lqcrtdrxK SgKSnZxr2DfpvYwnjTLteEdgC4wSmExC0ATxU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=HVffRheGZvUm096i8rL3qZdYAPWZa2jcLg62qh4EMbg=; b=YdwTrW9yA6cFoef223vm5nBLmF7UiaVVVk1vZfxr/euUDTt7hZqTBAmX96fpUV2LHq G010vMGHzh+4GxIEFLbuERLIiQiEHuS4yk2lN6qnC2yvJwi4L82TG520prk7Z9rqm/Hz YfnYiII4U0F1Z1uDbV6LGXZMSUQrnXhFHR1LRxFvA7eLk7sEfN5+zEyvg0HVA0IJV/f4 EeDkJMjQknxh4b3duZcWtjG/lVewoC7OIY3TzT5tApcxrBHUrsgxHW1tszBkig/dx6xy GN2R8RBMUUpTM6p8en2HvJ8Hsdu8XRtmSAnxjxOE6yMsjHlQYLDU1hLfATmcAmYtEiAX AOmQ== X-Gm-Message-State: AOAM531YCyDd/kFGwho/Qlc6Ovagez13hlYdEs64TjBw3OhY/Z2j+9po 1iokT7/4JbpoMIOPgdipxCfTGt8XGqVAAg== X-Received: by 2002:a17:90b:307:: with SMTP id ay7mr12146056pjb.110.1616739168822; Thu, 25 Mar 2021 23:12:48 -0700 (PDT) Received: from localhost (2001-44b8-111e-5c00-39c5-e677-fdb8-5d64.static.ipv6.internode.on.net. [2001:44b8:111e:5c00:39c5:e677:fdb8:5d64]) by smtp.gmail.com with ESMTPSA id m5sm8157716pfd.96.2021.03.25.23.12.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Mar 2021 23:12:48 -0700 (PDT) From: Daniel Axtens To: Jiapeng Chong , mpe@ellerman.id.au Cc: Jiapeng Chong , paulus@samba.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] powerpc/iommu/debug: Remove redundant NULL check In-Reply-To: <87r1k2795x.fsf@linkitivity.dja.id.au> References: <1616406217-94635-1-git-send-email-jiapeng.chong@linux.alibaba.com> <87r1k2795x.fsf@linkitivity.dja.id.au> Date: Fri, 26 Mar 2021 17:12:45 +1100 Message-ID: <87lfaa789u.fsf@linkitivity.dja.id.au> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Daniel Axtens writes: It looks like the kernel test robot also reported this: "[PATCH] powerpc/iommu/debug: fix ifnullfree.cocci warnings" Weirdly I don't see it in patchwork. I'm not sure which one mpe will want to take but either would do. >> Fix the following coccicheck warnings: >> >> ./fs/io_uring.c:5989:4-9: WARNING: NULL check before some freeing >> functions is not needed. (Also, while unimportant, that's technically not the error you fix here as it's for a different file!) > > This looks correct to me, and matches the description of debugfs_remove > in Documentation/filesystems/debugfs.rst. > > If you have a number of similar fixes it might be helpful to do them in > a single bigger patch, but I'm not sure if coccicheck reports much else > as I don't have coccinelle installed at the moment. > > Reviewed-by: Daniel Axtens > > Kind regards, > Daniel