mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-17 01:54:22 +00:00
refactor(ufs): delete unused variables
The result variable is not being used so it's better to delete it. Signed-off-by: Jorge Troncoso <jatron@google.com> Change-Id: Icae614076ce1ba7cdc86267473d59a8bec682f6c
This commit is contained in:
parent
863296898a
commit
a8904e94f0
1 changed files with 0 additions and 6 deletions
|
@ -656,7 +656,6 @@ static void ufs_read_capacity(int lun, unsigned int *num, unsigned int *size)
|
|||
sense_data_t *sense;
|
||||
unsigned char data[CACHE_WRITEBACK_GRANULE << 1];
|
||||
uintptr_t buf;
|
||||
int result;
|
||||
int retry;
|
||||
|
||||
assert((ufs_params.reg_base != 0) &&
|
||||
|
@ -693,14 +692,12 @@ static void ufs_read_capacity(int lun, unsigned int *num, unsigned int *size)
|
|||
/* logical block length in bytes */
|
||||
*size = be32toh(*(unsigned int *)(buf + 4));
|
||||
} while (retry);
|
||||
(void)result;
|
||||
}
|
||||
|
||||
size_t ufs_read_blocks(int lun, int lba, uintptr_t buf, size_t size)
|
||||
{
|
||||
utp_utrd_t utrd;
|
||||
resp_upiu_t *resp;
|
||||
int result;
|
||||
|
||||
assert((ufs_params.reg_base != 0) &&
|
||||
(ufs_params.desc_base != 0) &&
|
||||
|
@ -711,7 +708,6 @@ size_t ufs_read_blocks(int lun, int lba, uintptr_t buf, size_t size)
|
|||
dump_upiu(&utrd);
|
||||
#endif
|
||||
resp = (resp_upiu_t *)utrd.resp_upiu;
|
||||
(void)result;
|
||||
return size - resp->res_trans_cnt;
|
||||
}
|
||||
|
||||
|
@ -719,7 +715,6 @@ size_t ufs_write_blocks(int lun, int lba, const uintptr_t buf, size_t size)
|
|||
{
|
||||
utp_utrd_t utrd;
|
||||
resp_upiu_t *resp;
|
||||
int result;
|
||||
|
||||
assert((ufs_params.reg_base != 0) &&
|
||||
(ufs_params.desc_base != 0) &&
|
||||
|
@ -730,7 +725,6 @@ size_t ufs_write_blocks(int lun, int lba, const uintptr_t buf, size_t size)
|
|||
dump_upiu(&utrd);
|
||||
#endif
|
||||
resp = (resp_upiu_t *)utrd.resp_upiu;
|
||||
(void)result;
|
||||
return size - resp->res_trans_cnt;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue