broadcom: remove obvious comment

It is obvious that we check the return value to see if kernel supports
the feature, so no need to add a comment.

Signed-off-by: Juan A. Suarez Romero <jasuarez@igalia.com>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Reviewed-by: Maíra Canal <mcanal@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35965>
This commit is contained in:
Juan A. Suarez Romero
2025-07-08 12:40:23 +02:00
parent f4436d606e
commit 2188994c81

View File

@@ -100,14 +100,10 @@ v3d_get_device_info(int fd, struct v3d_device_info* devinfo, v3d_ioctl_fun drm_i
devinfo->compat_rev = (hub_ident3.value >> 16) & 0xff;
ret = drm_ioctl(fd, DRM_IOCTL_V3D_GET_PARAM, &max_perfcnt);
if (ret != 0) {
/* Kernel doesn't have support to return the maximum number of
* performance counters.
*/
if (ret != 0)
devinfo->max_perfcnt = 0;
} else {
else
devinfo->max_perfcnt = max_perfcnt.value;
}
return true;
}