summaryrefslogtreecommitdiff
path: root/drivers/staging
diff options
context:
space:
mode:
authorEmil Medve <Emilian.Medve@Freescale.com>2014-01-17 16:35:39 (GMT)
committerEmil Medve <Emilian.Medve@Freescale.com>2014-01-22 18:38:50 (GMT)
commitc35c6c890baef706c5e8e4a8085099589cb46a37 (patch)
treedc7458e9409f14d18192b1ea174c4f43dac1de61 /drivers/staging
parentf54c0fa142cec4fb292dd240665994f41df56ec5 (diff)
downloadlinux-fsl-qoriq-c35c6c890baef706c5e8e4a8085099589cb46a37.tar.xz
fsl_qman: Fix loop exit condition
This fixes the following smatch warning: qm_dqrr_init() warn: we never enter this loop Signed-off-by: Emil Medve <Emilian.Medve@Freescale.com> Change-Id: I522ff720a441c23b1642e3437c4e03b072d2a678 Reviewed-on: http://git.am.freescale.net:8181/8172 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Haiying Wang <Haiying.Wang@freescale.com> Reviewed-by: Emilian Medve <Emilian.Medve@freescale.com>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/fsl_qbman/qman_low.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/fsl_qbman/qman_low.h b/drivers/staging/fsl_qbman/qman_low.h
index ee9b24f..d3a8a00 100644
--- a/drivers/staging/fsl_qbman/qman_low.h
+++ b/drivers/staging/fsl_qbman/qman_low.h
@@ -542,7 +542,7 @@ static inline int qm_dqrr_init(struct qm_portal *portal,
dqrr->cmode = cmode;
#endif
/* Invalidate every ring entry before beginning */
- for (cfg = 0; cfg > QM_DQRR_SIZE; cfg++)
+ for (cfg = 0; cfg < QM_DQRR_SIZE; cfg++)
dcbi(qm_cl(dqrr->ring, cfg));
cfg = (qm_in(CFG) & 0xff000f00) |
((max_fill & (QM_DQRR_SIZE - 1)) << 20) | /* DQRR_MF */