/dev/null is a pseudo-file, i've saw before virtual hosts that do this, idk why, redirecting swap to /dev/null probably "neutralize" a swap file/partition, since even with swappiness 0 kernel are allowed to alloc data there, so i think this is the quick&dirty way to neutralize swap on vps's,