Skip to content

Commit

Permalink
s390: vmlogrdr: Use ARRAY_SIZE instead of reimplementing its function
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
zhong jiang authored and Martin Schwidefsky committed Sep 20, 2018
1 parent 827fd29 commit 54be9d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/s390/char/vmlogrdr.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 54be9d1

Please sign in to comment.