From: zhong jiang Date: Sat, 8 Sep 2018 10:26:27 +0000 (+0800) Subject: s390: vmlogrdr: Use ARRAY_SIZE instead of reimplementing its function X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=54be9d12b5c1c07fcd9eb05a7725882a9d9e500f;p=linux.git s390: vmlogrdr: Use ARRAY_SIZE instead of reimplementing its function Use the common code ARRAY_SIZE macro instead of a private implementation. Reviewed-by: Jean Delvare Signed-off-by: zhong jiang Signed-off-by: Martin Schwidefsky --- diff --git a/drivers/s390/char/vmlogrdr.c b/drivers/s390/char/vmlogrdr.c index 069b9ef08206b..58333cb4503f4 100644 --- a/drivers/s390/char/vmlogrdr.c +++ b/drivers/s390/char/vmlogrdr.c @@ -153,7 +153,7 @@ static struct vmlogrdr_priv_t sys_ser[] = { } }; -#define MAXMINOR (sizeof(sys_ser)/sizeof(struct vmlogrdr_priv_t)) +#define MAXMINOR ARRAY_SIZE(sys_ser) static char FENCE[] = {"EOR"}; static int vmlogrdr_major = 0;