Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fbb40b28 authored by Daniel Vetter's avatar Daniel Vetter
Browse files

drm/edid: Use ARRAY_SIZE in drm_add_modes_noedid



Spotted while reading code for random reasons.

Reviewed-by: default avatarThierry Reding <treding@nvidia.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@intel.com>
parent 2143287d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3802,7 +3802,7 @@ int drm_add_modes_noedid(struct drm_connector *connector,
	struct drm_display_mode *mode;
	struct drm_device *dev = connector->dev;

	count = sizeof(drm_dmt_modes) / sizeof(struct drm_display_mode);
	count = ARRAY_SIZE(drm_dmt_modes);
	if (hdisplay < 0)
		hdisplay = 0;
	if (vdisplay < 0)