It looks like this is supposed to fall though and go to error_out. In that case, nothing looks at ret. You can kill this line.