cntools / cnfa

Foundational audio drivers
MIT License
32 stars 16 forks source link

Remove unnecessary null pointer checks #3

Closed elfring closed 4 years ago

elfring commented 4 years ago

Extra null pointer checks are not needed in functions like the following.

cnlohr commented 4 years ago

After a long discussion, because these are very rarely set, the if is there as an indicator to future programmers that these values will very commonly be null. No change willbe made. Thank you for pointing it out, though.

elfring commented 4 years ago

I would prefer source code with less questionable checks.