Fix compiler warning
Remove unused statements
Fix handling of infinities in float_to_half