summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPriyanka Dandamudi <priyanka.dandamudi@intel.com>2022-04-28 17:03:27 +0530
committerPriyanka Dandamudi <priyanka.dandamudi@intel.com>2022-04-28 18:48:52 +0530
commit3f5b7b81db7aa2dd767aeaaf3945ffe92fc90f8c (patch)
tree70d8749c37761c97eb6cf5590b86aae7acf5365d /lib
parentbcc26bd2b26220147b00f87d91e2ff1d4bd3ce5e (diff)
lib/igt_sysfs: Remove igt_debug_on in igt_sysfs_gt_open()
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@linux.intel.com> Signed-off-by: Priyanka Dandamudi <priyanka.dandamudi@intel.com> Reviewed-by: Kamil Konieczny <kamil.konieczny@linux.intel.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/igt_sysfs.c2
1 files changed, 1 insertions, 1 deletions
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);