Simplify. NFC.

llvm-svn: 263391
diff --git a/lld/ELF/InputSection.cpp b/lld/ELF/InputSection.cpp
index 993f0cb..667072f 100644
--- a/lld/ELF/InputSection.cpp
+++ b/lld/ELF/InputSection.cpp
@@ -78,11 +78,9 @@
   // Global symbol
   uint32_t SymIndex = Rel.getSymbol(Config->Mips64EL);
   SymbolBody &B = File->getSymbolBody(SymIndex).repl();
-  InputSectionBase<ELFT> *S = nullptr;
   if (auto *D = dyn_cast<DefinedRegular<ELFT>>(&B))
-    S = D->Section;
-  if (S)
-    return S->Repl;
+    if (D->Section)
+      return D->Section->Repl;
   return nullptr;
 }