Skip to content

Commit f9319be

Browse files
authored
Remove redundant tmp check (#76154)
The function has an early return if tmp is ever null, so there is no need to have this check here.
1 parent c6dbf9c commit f9319be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/coreclr/ilasm/asmman.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ void AsmMan::AddFile(_In_ __nullterminated char* szName, DWORD dwAttr, BinStr
181181
tmp->tkTok = TokenFromRid(m_FileLst.COUNT(),mdtFile);
182182
}
183183
pAsm->m_tkCurrentCVOwner = 0;
184-
if(tmp) pAsm->m_pCustomDescrList = &(tmp->m_CustomDescrList);
184+
pAsm->m_pCustomDescrList = &(tmp->m_CustomDescrList);
185185
}
186186
//==============================================================================================================
187187

0 commit comments

Comments
 (0)