src: Remove unnecessary checks