if (Erase_D_PhyOneBlock(us)) {
if (ErrCode==ERR_HwError) return ERROR;
if (MarkFail_D_PhyOneBlock(us)) return ERROR;
- }
- else
+ } else
Clr_D_Bit(Assign[Media.Zone],Media.PhyBlock);
- }
- else if (MarkFail_D_PhyOneBlock(us))
+ } else if (MarkFail_D_PhyOneBlock(us))
return ERROR;
Media.PhyBlock=WriteBlock;
err=ERROR;
SectCopyMode=REQ_FAIL;
}
- }
- else {
+ } else {
err=SMSUCCESS;
for(i=0; i<SECTSIZE; i++)
WorkBuf[i]=DUMMY_DATA;
Media.PhyBlock=Log2Phy[Media.Zone][logblock];
Log2Phy[Media.Zone][logblock]=phyblock;
}
- }
- else {
+ } else {
Media.PhyBlock=Log2Phy[Media.Zone][logblock];
Log2Phy[Media.Zone][logblock]=phyblock;
}