Octeon SDK: avoid use of uninitialized variable
Reported by: Clang MFC after: 1 week Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
376dc4ec6e
commit
5548b8207b
@ -684,6 +684,7 @@ static inline int cvmx_pip_get_bsel_table_index(cvmx_wqe_t *work)
|
||||
bsel_cfg.u64 = cvmx_read_csr(CVMX_PIP_BSEL_EXT_CFGX(bit));
|
||||
bsel_pos.u64 = cvmx_read_csr(CVMX_PIP_BSEL_EXT_POSX(bit));
|
||||
|
||||
index = 0;
|
||||
for (y = 0; y < 8; y++)
|
||||
{
|
||||
char *ptr = (char *)cvmx_phys_to_ptr(work->packet_ptr.s.addr);
|
||||
|
Loading…
x
Reference in New Issue
Block a user