Date: Sun, 18 Nov 2018 14:56:26 +0000 (UTC) From: Ed Maste <emaste@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Subject: svn commit: r340585 - stable/11/sys/contrib/octeon-sdk Message-ID: <201811181456.wAIEuQge036187@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: emaste Date: Sun Nov 18 14:56:26 2018 New Revision: 340585 URL: https://svnweb.freebsd.org/changeset/base/340585 Log: MFC r340299: Octeon SDK: avoid use of uninitialized variable Reported by: Clang Modified: stable/11/sys/contrib/octeon-sdk/cvmx-pip.h Directory Properties: stable/11/ (props changed) Modified: stable/11/sys/contrib/octeon-sdk/cvmx-pip.h ============================================================================== --- stable/11/sys/contrib/octeon-sdk/cvmx-pip.h Sun Nov 18 14:56:08 2018 (r340584) +++ stable/11/sys/contrib/octeon-sdk/cvmx-pip.h Sun Nov 18 14:56:26 2018 (r340585) @@ -684,6 +684,7 @@ static inline int cvmx_pip_get_bsel_table_index(cvmx_w 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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201811181456.wAIEuQge036187>