Octeon SDK: avoid use of uninitialized variable

Reported by:	Clang
MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Ed Maste 2018-11-09 19:17:25 +00:00
parent 8573e2c388
commit 1d3ffc719e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=340299

View file

@ -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);