]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
s390: vmlogrdr: Use ARRAY_SIZE instead of reimplementing its function
authorzhong jiang <zhongjiang@huawei.com>
Sat, 8 Sep 2018 10:26:27 +0000 (18:26 +0800)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 20 Sep 2018 11:20:28 +0000 (13:20 +0200)
Use the common code ARRAY_SIZE macro instead of a private implementation.

Reviewed-by: Jean Delvare <jdelvare@suse.de>
Signed-off-by: zhong jiang <zhongjiang@huawei.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/char/vmlogrdr.c

index 069b9ef08206b1bc7168bdbfd4dd3de2ba026e6c..58333cb4503f4db1e3c76aa188e820997b2d9b6b 100644 (file)
@@ -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;