[igt-dev] [PATCH i-g-t] lib/igt_sysfs: Remove igt_debug_on in igt_sysfs_gt_open()
priyanka.dandamudi at intel.com
priyanka.dandamudi at intel.com
Thu Apr 28 11:33:27 UTC 2022
From: Priyanka Dandamudi <priyanka.dandamudi at intel.com>
As igt_sysfs_gt_open() is being used in for_each_sysfs_gt_dirfd,
remove unwanted igt_debug_on in igt_sysfs_gt_open().
Cc: Kamil Konieczny <kamil.konieczny at linux.intel.com>
Signed-off-by: Priyanka Dandamudi <priyanka.dandamudi at intel.com>
---
lib/igt_sysfs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/igt_sysfs.c b/lib/igt_sysfs.c
index fe77afd7..e42251e6 100644
--- a/lib/igt_sysfs.c
+++ b/lib/igt_sysfs.c
@@ -203,7 +203,7 @@ int igt_sysfs_open(int device)
{
char path[80];
- if (igt_debug_on(!igt_sysfs_path(device, path, sizeof(path))))
+ if (!igt_sysfs_path(device, path, sizeof(path)))
return -1;
return open(path, O_RDONLY);
--
2.25.1
More information about the igt-dev
mailing list