Skip to content

Commit

Permalink
drm/i915/tv: fix open-coded ARRAY_SIZE.
Browse files Browse the repository at this point in the history
Signed-off-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
  • Loading branch information
Dave Airlie authored and Daniel Vetter committed Apr 20, 2012
1 parent 31b14c9 commit 3801a7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/i915/intel_tv.c
Original file line number Diff line number Diff line change
Expand Up @@ -811,7 +811,7 @@ intel_tv_mode_lookup(const char *tv_format)
{
int i;

for (i = 0; i < sizeof(tv_modes) / sizeof(tv_modes[0]); i++) {
for (i = 0; i < ARRAY_SIZE(tv_modes); i++) {
const struct tv_mode *tv_mode = &tv_modes[i];

if (!strcmp(tv_format, tv_mode->name))
Expand Down

0 comments on commit 3801a7f

Please sign in to comment.