From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B27BEC001B0 for ; Tue, 15 Aug 2023 20:35:51 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 6B9DB61190; Tue, 15 Aug 2023 20:35:51 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 6B9DB61190 Authentication-Results: smtp3.osuosl.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20221208 header.b=fz6uOF6u X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7coefngboqzA; Tue, 15 Aug 2023 20:35:50 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by smtp3.osuosl.org (Postfix) with ESMTPS id 727AB61184; Tue, 15 Aug 2023 20:35:50 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 727AB61184 Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 4C3C7C0072; Tue, 15 Aug 2023 20:35:50 +0000 (UTC) Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by lists.linuxfoundation.org (Postfix) with ESMTP id 03FBAC0032 for ; Tue, 15 Aug 2023 20:35:49 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id BEB8161190 for ; Tue, 15 Aug 2023 20:35:48 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org BEB8161190 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TYol0f3BVwsa for ; Tue, 15 Aug 2023 20:35:48 +0000 (UTC) Received: from mail-pf1-x42d.google.com (mail-pf1-x42d.google.com [IPv6:2607:f8b0:4864:20::42d]) by smtp3.osuosl.org (Postfix) with ESMTPS id 1959C61184 for ; Tue, 15 Aug 2023 20:35:47 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 1959C61184 Received: by mail-pf1-x42d.google.com with SMTP id d2e1a72fcca58-688779ffcfdso446307b3a.1 for ; Tue, 15 Aug 2023 13:35:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1692131747; x=1692736547; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=mPFfFDm5pA4v6nMeP5/NIkRUW1O55g9MR5VmXpYuFuI=; b=fz6uOF6u1h7s51c8hVMD5tC9JikgTGuTtZxT+e3akqgHhyMlEwzc0/VcD6AH5DbH/9 n0GhZLOo5UfdpIEi6/UYqLwEeYwYZaZ/jVodz1YaK9FIUXCiPMi2FCyyfrf0at6iLwz4 y587/2iYWyZqFaU+7RvrJKxUdiivt1OnxfGUhyMAao8evBzJcZ1OLU7C9xbLI+VRqMT6 jdKibd3EDMF5pAruff9HaqTYBtPBYo5SEHUUmcdbxcnmx3Gzh5o6bpwLGIBXnZG4//Mm +0d3ANtSgno3kZVRNdMGOklYlPBmFp5/rkbs7DT4ZdTAjOdphjucegt7MKyuaKnTDX78 cxQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692131747; x=1692736547; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=mPFfFDm5pA4v6nMeP5/NIkRUW1O55g9MR5VmXpYuFuI=; b=b04as5vYzp+Ku+RyTIXh7yFMxcpAZlzq6zLuhxMEuigdiSs5qEYSLOfkOcR6iSZGQB 4VQpw0CFoaAho5PikP/9q3a6xMCXFpuUD8GJxE0dJ2GmRb+SBbQxzkxixajfhOOJqhWk sp85ESg2rsGgbZ0/EGEvyE4NP6CyUNcWaPyevQVCs4xe+6B4ghRd80IGpEHnO39j0LS3 yFI9Cezg52v1x1pR9gYjj5/Jf2lClR+DJ0hRG9J/zZM2ZagXLY4jZcyNE4iaAlRXxVs3 jHqtZlPSv9GQJ5jced71HnvFEe0CnXgKncJXxvlkepIGGgUckT2rzhBJnZgjSnMoJcyC 6hTw== X-Gm-Message-State: AOJu0YzWqPyMuPmg7h66FZksBOo9L+Y1KWOw5x7tDmisLtkFthIbM+2y /LkAAPyF6USojrkdy6h+pUs= X-Google-Smtp-Source: AGHT+IHMUzArXSJZhBKI7d0BvU5Evh2xdN2u3cyKQuhPgoH9VUo0or3xM5qLOWbWIOVq10pn3rjwNg== X-Received: by 2002:a05:6a20:428a:b0:13d:d5bd:7593 with SMTP id o10-20020a056a20428a00b0013dd5bd7593mr14663114pzj.12.1692131747470; Tue, 15 Aug 2023 13:35:47 -0700 (PDT) Received: from atom0118 ([2405:201:c009:58e9:db85:3caf:1429:e455]) by smtp.gmail.com with ESMTPSA id x52-20020a056a000bf400b006870c50efaesm9785846pfu.9.2023.08.15.13.35.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Aug 2023 13:35:47 -0700 (PDT) Date: Wed, 16 Aug 2023 02:05:19 +0530 From: Atul Kumar Pant To: Greg KH Subject: Re: [PATCH v1] drivers: edac: zynqmp_edac: Updates return value check Message-ID: <20230815203519.GB51427@atom0118> References: <20230806130514.159102-1-atulpant.linux@gmail.com> <2023080631-salon-banter-31b7@gregkh> <20230807023104.GA4030@atom0118> <2023080727-wildly-veal-c0fd@gregkh> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <2023080727-wildly-veal-c0fd@gregkh> Cc: tony.luck@intel.com, rric@kernel.org, linux-edac@vger.kernel.org, shuah@kernel.org, linux-kernel-mentees@lists.linuxfoundation.org, shubhrajyoti.datta@amd.com, bp@alien8.de, james.morse@arm.com, mchehab@kernel.org, michal.simek@amd.com, sai.krishna.potthuri@amd.com X-BeenThere: linux-kernel-mentees@lists.linuxfoundation.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: linux-kernel-mentees-bounces@lists.linuxfoundation.org Sender: "Linux-kernel-mentees" On Mon, Aug 07, 2023 at 08:01:56AM +0200, Greg KH wrote: > On Mon, Aug 07, 2023 at 08:01:04AM +0530, Atul Kumar Pant wrote: > > On Sun, Aug 06, 2023 at 03:37:01PM +0200, Greg KH wrote: > > > On Sun, Aug 06, 2023 at 06:35:14PM +0530, Atul Kumar Pant wrote: > > > > Updating the check of return value from edac_debugfs_create_dir > > > > to use IS_ERR. > > > > > > > > Signed-off-by: Atul Kumar Pant > > > > --- > > > > drivers/edac/zynqmp_edac.c | 2 +- > > > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > > > > > diff --git a/drivers/edac/zynqmp_edac.c b/drivers/edac/zynqmp_edac.c > > > > index ac7d1e0b324c..cefbbafb945e 100644 > > > > --- a/drivers/edac/zynqmp_edac.c > > > > +++ b/drivers/edac/zynqmp_edac.c > > > > @@ -351,7 +351,7 @@ static void setup_debugfs(struct edac_device_ctl_info *edac_dev) > > > > struct edac_priv *priv = edac_dev->pvt_info; > > > > > > > > priv->debugfs_dir = edac_debugfs_create_dir("ocm"); > > > > - if (!priv->debugfs_dir) > > > > + if (IS_ERR(priv->debugfs_dir)) > > > > return; > > > > > > Again, not correct, sorry. Please do not make these types of changes. > > > > > > Why do you feel this is needed at all? > > > > > edac_debugfs_create_dir uses debugfs_create_dir that return ERR_PTR. > > Hence to check the return value by this function I changed null > > comparison with IS_ERR. > > But that's not needed at all, right? > > As this check has not ever really worked, why check it at all? I'll fix this in a new patch > > greg k-h _______________________________________________ Linux-kernel-mentees mailing list Linux-kernel-mentees@lists.linuxfoundation.org https://lists.linuxfoundation.org/mailman/listinfo/linux-kernel-mentees