diff --git a/src/mem/abstract_mem.hh b/src/mem/abstract_mem.hh index 655fc01152..d92e7070c2 100644 --- a/src/mem/abstract_mem.hh +++ b/src/mem/abstract_mem.hh @@ -161,7 +161,7 @@ class AbstractMemory : public ClockedObject } } - /** Pointor to the System object. + /** Pointer to the System object. * This is used for getting the number of masters in the system which is * needed when registering stats */ diff --git a/src/mem/dram_ctrl.cc b/src/mem/dram_ctrl.cc index 1352dbfbe3..37db27ce07 100644 --- a/src/mem/dram_ctrl.cc +++ b/src/mem/dram_ctrl.cc @@ -2535,8 +2535,7 @@ DRAMCtrl::DRAMStats::regStats() { using namespace Stats; - System *sys = dram._system; - assert(sys); + assert(dram._system); const auto max_masters = dram._system->maxMasters(); perBankRdBursts.init(dram.banksPerRank * dram.ranksPerChannel);