mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-27 23:35:10 +00:00
fix(drivers/nxp/sfp): fix compile warning
Fix compile warning that ‘mask’ may be used uninitialized. Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com> Change-Id: I75a443dbc36d7bd174fe317616fd95cd096306fc
This commit is contained in:
parent
2475f63bde
commit
3239a17561
1 changed files with 1 additions and 1 deletions
|
@ -326,7 +326,7 @@ static int prog_ospr1(struct fuse_hdr_t *fuse_hdr,
|
||||||
struct sfp_ccsr_regs_t *sfp_ccsr_regs)
|
struct sfp_ccsr_regs_t *sfp_ccsr_regs)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
uint32_t mask;
|
uint32_t mask = 0;
|
||||||
|
|
||||||
#ifdef NXP_SFP_VER_3_4
|
#ifdef NXP_SFP_VER_3_4
|
||||||
if (((fuse_hdr->flags >> FLAG_MC_SHIFT) & 0x1) != 0) {
|
if (((fuse_hdr->flags >> FLAG_MC_SHIFT) & 0x1) != 0) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue