fix defect pointed out by Prevent. return value needs to be properly assigned before it is checked.
fix defect pointed out by Prevent. return value needs to be properly assigned before it is checked.

ldm5180/hammerhead,ldm5180/hammerhead,ldm5180/hammerhead,ldm5180/hammerhead,ldm5180/hammerhead,ldm5180/hammerhead,ldm5180/hammerhead