Removed a NULL check that happened twice, and indented a retval check.
Removed a NULL check that happened twice, and indented a retval check.

shalecraig/accel,shalecraig/accel,shalecraig/accel,shalecraig/accel