it's a refactor to make use of PAGE_ALIGN helper macro Signed-off-by: Cai Huoqing <caihuoqing@xxxxxxxxx> --- drivers/s390/block/scm_blk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/s390/block/scm_blk.c b/drivers/s390/block/scm_blk.c index 88cba6212ee2..9f17aa38ab45 100644 --- a/drivers/s390/block/scm_blk.c +++ b/drivers/s390/block/scm_blk.c @@ -158,7 +158,7 @@ static inline struct aidaw *scm_aidaw_alloc(void) static inline unsigned long scm_aidaw_bytes(struct aidaw *aidaw) { unsigned long _aidaw = (unsigned long) aidaw; - unsigned long bytes = ALIGN(_aidaw, PAGE_SIZE) - _aidaw; + unsigned long bytes = PAGE_ALIGN(_aidaw) - _aidaw; return (bytes / sizeof(*aidaw)) * PAGE_SIZE; } -- 2.25.1