drivers: mtd: nand: fix to resolve compiler warnings

Change-Id: I0f7de357aa621ac3096859cdf6a25c05b043bcdb
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
This commit is contained in:
Timple Raj M 2024-06-13 22:17:35 +05:30
parent be508059c0
commit fc2a063d53
2 changed files with 4 additions and 4 deletions

View file

@ -205,7 +205,7 @@ char * const argv[])
uint32_t offset, part_size, adj_size;
uint32_t load_addr = 0;
uint32_t file_size = 0;
uint32_t size_block, start_block, file_size_cpy;
uint32_t size_block, start_block, file_size_cpy = 0;
char *part_name = NULL, *filesize, *loadaddr;
int flash_type, ret;
unsigned int active_part = 0;

View file

@ -2510,7 +2510,7 @@ static const struct nand_flash_dev *flash_get_dev(uint8_t dev_id)
{
int i;
for (i = 0; nand_flash_ids[i].id; i++) {
for (i = 0; nand_flash_ids[i].name != NULL; i++) {
if (nand_flash_ids[i].dev_id == dev_id)
return &nand_flash_ids[i];
}
@ -2849,7 +2849,7 @@ qpic_nand_read_page(struct mtd_info *mtd, uint32_t page,
uint32_t i;
int nand_ret = NANDC_RESULT_SUCCESS;
uint8_t flags = 0;
uint32_t *cmd_list_temp = NULL;
struct cmd_element *cmd_list_temp = NULL;
uint16_t data_bytes;
uint16_t ud_bytes_in_last_cw;
uint16_t oob_bytes;
@ -3026,7 +3026,7 @@ qpic_nand_read_page(struct mtd_info *mtd, uint32_t page,
(uint32_t)((addr_t)&(stats[i].flash_sts)),
CE_READ_TYPE);
cmd_list_temp = (uint32_t *)cmd_list_ptr;
cmd_list_temp = cmd_list_ptr;
cmd_list_ptr++;