From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Warren Date: Mon, 03 Feb 2014 23:34:04 -0700 Subject: [U-Boot] U-Boot DWC2 unused variables Message-ID: <52F089DC.3000800@wwwdotorg.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Oleksandr, Thanks for the quick response on the s-o-b lines. Another question: The compiler is complaining about hprt0 being written but then not used in the functions below. I assume the second parameter passed to dwc_write_reg32() should be hprt0.d32 rather than val? > void dwc_otg_set_prtpower(dwc_otg_core_if_t * core_if, uint32_t val) > { > hprt0_data_t hprt0; > hprt0.d32 = dwc_read_reg32(core_if->host_if->hprt0); > hprt0.b.prtpwr = val; > dwc_write_reg32(core_if->host_if->hprt0, val); > } > void dwc_otg_set_prtsuspend(dwc_otg_core_if_t * core_if, uint32_t val) > { > hprt0_data_t hprt0; > hprt0.d32 = dwc_read_reg32(core_if->host_if->hprt0); > hprt0.b.prtsusp = val; > dwc_write_reg32(core_if->host_if->hprt0, val); > } > > void dwc_otg_set_prtresume(dwc_otg_core_if_t * core_if, uint32_t val) > { > hprt0_data_t hprt0; > hprt0.d32 = dwc_read_reg32(core_if->host_if->hprt0); > hprt0.b.prtres = val; > dwc_write_reg32(core_if->host_if->hprt0, val); > }