RAMTMP: simplfy error check

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>