Remove useless casts of malloc return value.