misc: Use safe_cast when assumptions are made about return value
authorAndreas Hansson <andreas.hansson@arm.com>
Fri, 19 Sep 2014 14:35:11 +0000 (10:35 -0400)
committerAndreas Hansson <andreas.hansson@arm.com>
Fri, 19 Sep 2014 14:35:11 +0000 (10:35 -0400)
commitefd5cf323ab9ba91487d975899f13353d3258e83
tree51fbbd7f82c481fe41e3cab2d714bef9c7e15cfd
parent32c111eda40269b0047ba3c109b7a2ba878d2544
misc: Use safe_cast when assumptions are made about return value

This patch changes two dynamic_cast to safe_cast as we assume the
return value is not NULL (without checking).
src/cpu/testers/memtest/memtest.cc
src/mem/packet.cc