From 85bf4227a0a8837259559c6976c72ec5d080dc63 Mon Sep 17 00:00:00 2001
From: Zbigniew Bodek <zbb@FreeBSD.org>
Date: Fri, 3 Jun 2016 18:52:57 +0000
Subject: [PATCH] Use nitems() macro instead of re-inventing it

Fixed after r301221.

Pointed out by:	oshogbo
Submitted by:	Michal Stanek <mst@semihalf.com>
Obtained from:	Semihalf
---
 sys/arm/mv/mv_common.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/arm/mv/mv_common.c b/sys/arm/mv/mv_common.c
index e24612cfeee2..497860f6d1e3 100644
--- a/sys/arm/mv/mv_common.c
+++ b/sys/arm/mv/mv_common.c
@@ -2131,7 +2131,7 @@ win_cpu_from_dt(void)
 		return (0);
 
 	t++;
-	if (t >= ((sizeof(cpu_win_tbl))/(sizeof(cpu_win_tbl[0])))) {
+	if (t >= nitems(cpu_win_tbl)) {
 		debugf("cannot fit CESA tuple into cpu_win_tbl\n");
 		return (ENOMEM);
 	}