Commit 54be9d12 authored by zhong jiang's avatar zhong jiang Committed by Martin Schwidefsky

s390: vmlogrdr: Use ARRAY_SIZE instead of reimplementing its function

Use the common code ARRAY_SIZE macro instead of a private implementation.
Reviewed-by: default avatarJean Delvare <jdelvare@suse.de>
Signed-off-by: default avatarzhong jiang <zhongjiang@huawei.com>
Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
parent 827fd299
...@@ -153,7 +153,7 @@ static struct vmlogrdr_priv_t sys_ser[] = { ...@@ -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 char FENCE[] = {"EOR"};
static int vmlogrdr_major = 0; static int vmlogrdr_major = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment