Updating the check of return value from edac_debugfs_create_dir
to use IS_ERR.
Signed-off-by: Atul Kumar Pant <redacted>
---
drivers/edac/zynqmp_edac.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
On Sun, Aug 06, 2023 at 06:35:14PM +0530, Atul Kumar Pant wrote:
quoted hunk
Updating the check of return value from edac_debugfs_create_dir
to use IS_ERR.
Signed-off-by: Atul Kumar Pant <redacted>
---
drivers/edac/zynqmp_edac.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Again, not correct, sorry. Please do not make these types of changes.
Why do you feel this is needed at all?
thanks,
greg k-h
_______________________________________________
Linux-kernel-mentees mailing list
Linux-kernel-mentees@lists.linuxfoundation.org
https://lists.linuxfoundation.org/mailman/listinfo/linux-kernel-mentees
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:
quoted
Updating the check of return value from edac_debugfs_create_dir
to use IS_ERR.
Signed-off-by: Atul Kumar Pant <redacted>
---
drivers/edac/zynqmp_edac.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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.
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:
quoted
On Sun, Aug 06, 2023 at 06:35:14PM +0530, Atul Kumar Pant wrote:
quoted
Updating the check of return value from edac_debugfs_create_dir
to use IS_ERR.
Signed-off-by: Atul Kumar Pant <redacted>
---
drivers/edac/zynqmp_edac.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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?
greg k-h
_______________________________________________
Linux-kernel-mentees mailing list
Linux-kernel-mentees@lists.linuxfoundation.org
https://lists.linuxfoundation.org/mailman/listinfo/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:
quoted
On Sun, Aug 06, 2023 at 03:37:01PM +0200, Greg KH wrote:
quoted
On Sun, Aug 06, 2023 at 06:35:14PM +0530, Atul Kumar Pant wrote:
quoted
Updating the check of return value from edac_debugfs_create_dir
to use IS_ERR.
Signed-off-by: Atul Kumar Pant <redacted>
---
drivers/edac/zynqmp_edac.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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?