[igt-dev] [PATCH i-g-t] lib/igt_sysfs: Remove igt_debug_on in igt_sysfs_gt_open()
Kamil Konieczny
kamil.konieczny at linux.intel.com
Thu Apr 28 12:44:21 UTC 2022
On 2022-04-28 at 17:03:27 +0530, priyanka.dandamudi at intel.com wrote:
> 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
>
Reviewed-by: Kamil Konieczny <kamil.konieczny at linux.intel.com>
--
Kamil
More information about the igt-dev
mailing list