1
0
Fork 0

sdk_qbman: Fix error in IP revision comparison

The comparison for QMAN_REV31 was incorrect as it
would always fail due to the wrong mask.

This fixes the following error in newer GCC versions:
"error: bitwise comparison always evaluates to false
	[-Werror=tautological-compare]"

Signed-off-by: Roy Pledge <roy.pledge@nxp.com>
5.4-rM2-2.2.x-imx-squashed
Roy Pledge 2019-05-06 11:18:57 -04:00 committed by Dong Aisheng
parent 56edc75e74
commit 9851bf3f8c
1 changed files with 1 additions and 1 deletions

View File

@ -812,7 +812,7 @@ int qman_set_sdest(u16 channel, unsigned int cpu_idx)
if (!qman_have_ccsr())
return -ENODEV;
if ((qman_ip_rev & 0xFF00) == QMAN_REV31) {
if ((qman_ip_rev & 0xFFFF) == QMAN_REV31) {
/* LS1043A - only one L2 cache */
cpu_idx = 0;
}