mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-09-20 22:52:00 +00:00
nvme: Correct the prps per page calculation method
Each prp is 8 bytes, calculate the number of prps per page should just divide page size by 8 there is no need to minus 1 Signed-off-by: Wesley Sheng <wesleyshenggit@sina.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
This commit is contained in:
parent
b12f62374e
commit
859b33c948
1 changed files with 1 additions and 1 deletions
|
@ -81,7 +81,7 @@ static int nvme_setup_prps(struct nvme_dev *dev, u64 *prp2,
|
|||
u64 *prp_pool;
|
||||
int length = total_len;
|
||||
int i, nprps;
|
||||
u32 prps_per_page = (page_size >> 3) - 1;
|
||||
u32 prps_per_page = page_size >> 3;
|
||||
u32 num_pages;
|
||||
|
||||
length -= (page_size - offset);
|
||||
|
|
Loading…
Reference in a new issue