[PATCH 1/4] s390/scm_blk: Make use of PAGE_ALIGN helper macro

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux