Date: Fri, 9 Nov 2018 19:17:25 +0000 (UTC) From: Ed Maste <emaste@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r340299 - head/sys/contrib/octeon-sdk Message-ID: <201811091917.wA9JHPrk053090@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: emaste Date: Fri Nov 9 19:17:25 2018 New Revision: 340299 URL: https://svnweb.freebsd.org/changeset/base/340299 Log: Octeon SDK: avoid use of uninitialized variable Reported by: Clang MFC after: 1 week Sponsored by: The FreeBSD Foundation Modified: head/sys/contrib/octeon-sdk/cvmx-pip.h Modified: head/sys/contrib/octeon-sdk/cvmx-pip.h ============================================================================== --- head/sys/contrib/octeon-sdk/cvmx-pip.h Fri Nov 9 19:16:01 2018 (r340298) +++ head/sys/contrib/octeon-sdk/cvmx-pip.h Fri Nov 9 19:17:25 2018 (r340299) @@ -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?201811091917.wA9JHPrk053090>