qcacmn: Fix NR_CPUS overflow for one byte data structure

For one byte data structure of unsigned type, it is expected that
the maximum value is 255. However, NR_CPUS is 512 in x86 setup of
Napier.

CRs-Fixed: 2158203
Change-Id: I057fb0cf3c11e687dfdd6cd2295b16743297d561
This commit is contained in:
chenguo 2017-12-13 16:31:13 +08:00 • committed by snandini
commit 8107b66d8f

View file

@ -5205,7 +5205,8 @@ static void dp_print_napi_stats(struct dp_soc *soc)
*/
static void dp_print_per_ring_stats(struct dp_soc *soc)
{
uint8_t core, ring;
uint8_t ring;
uint16_t core;
uint64_t total_packets;
DP_TRACE(FATAL, "Reo packets per ring:");