Some minor ktap.c fixes/cleanups

These patches fix up some sparse warnings, try to put some limits on user-provided values so that the kernel doesn't crash, and removes some unneeded error messages.