Fix warning about unused-variable ret.

Signed-off-by: jack <jack.wgm@gmail.com>