mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 13:15:18 -05:00
mips: fix some compile warnings.
Change-Id: Ia5e83702313c1c184480290d3b0e6a66f01b7277
This commit is contained in:
parent
53d72a8be1
commit
d2cef81bba
5 changed files with 11 additions and 5 deletions
|
|
@ -341,7 +341,7 @@ static int jz_nand_read_oob(unsigned long page_addr, unsigned char *buf, int siz
|
|||
static int jz_nand_read_page(unsigned long page_addr, unsigned char *dst)
|
||||
{
|
||||
struct nand_param *nandp = &internal_param;
|
||||
int page_size, oob_size, page_per_block;
|
||||
int page_size, oob_size;
|
||||
int row_cycle, bus_width, ecc_count;
|
||||
int i;
|
||||
#ifdef USE_ECC
|
||||
|
|
@ -355,7 +355,6 @@ static int jz_nand_read_page(unsigned long page_addr, unsigned char *dst)
|
|||
|
||||
page_size = nandp->page_size;
|
||||
oob_size = nandp->oob_size;
|
||||
page_per_block = nandp->page_per_block;
|
||||
row_cycle = nandp->row_cycle;
|
||||
bus_width = nandp->bus_width;
|
||||
|
||||
|
|
|
|||
|
|
@ -340,7 +340,7 @@ static int jz_nand_read_oob(unsigned long page_addr, unsigned char *buf, int siz
|
|||
static int jz_nand_read_page(unsigned long page_addr, unsigned char *dst)
|
||||
{
|
||||
struct nand_param *nandp = &internal_param;
|
||||
int page_size, oob_size, page_per_block;
|
||||
int page_size, oob_size;
|
||||
int row_cycle, bus_width, ecc_count;
|
||||
int i;
|
||||
#ifdef USE_ECC
|
||||
|
|
@ -351,7 +351,6 @@ static int jz_nand_read_page(unsigned long page_addr, unsigned char *dst)
|
|||
|
||||
page_size = nandp->page_size;
|
||||
oob_size = nandp->oob_size;
|
||||
page_per_block = nandp->page_per_block;
|
||||
row_cycle = nandp->row_cycle;
|
||||
bus_width = nandp->bus_width;
|
||||
|
||||
|
|
|
|||
|
|
@ -110,6 +110,7 @@ int _battery_voltage(void)
|
|||
|
||||
dummy = REG_SADC_BATDAT;
|
||||
dummy = REG_SADC_BATDAT;
|
||||
(void)dummy;
|
||||
|
||||
REG_SADC_ENA |= SADC_ENA_PBATEN;
|
||||
|
||||
|
|
|
|||
|
|
@ -75,7 +75,8 @@ int _battery_voltage(void)
|
|||
|
||||
dummy = REG_SADC_BATDAT;
|
||||
dummy = REG_SADC_BATDAT;
|
||||
|
||||
(void)dummy;
|
||||
|
||||
REG_SADC_ENA |= SADC_ENA_PBATEN;
|
||||
bat_val = 0;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue