aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/host/pcie-designware.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pci/host/pcie-designware.c')
-rw-r--r--drivers/pci/host/pcie-designware.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/host/pcie-designware.c b/drivers/pci/host/pcie-designware.c
index 1e1fea4d959b..e33b68be0391 100644
--- a/drivers/pci/host/pcie-designware.c
+++ b/drivers/pci/host/pcie-designware.c
@@ -197,7 +197,7 @@ static int find_valid_pos0(struct pcie_port *pp, int msgvec, int pos, int *pos0)
197 return -ENOSPC; 197 return -ENOSPC;
198 /* 198 /*
199 * Check if this position is at correct offset.nvec is always a 199 * Check if this position is at correct offset.nvec is always a
200 * power of two. pos0 must be nvec bit alligned. 200 * power of two. pos0 must be nvec bit aligned.
201 */ 201 */
202 if (pos % msgvec) 202 if (pos % msgvec)
203 pos += msgvec - (pos % msgvec); 203 pos += msgvec - (pos % msgvec);