ktap: fix some sparse warnings in ktap.c

Minor sparse cleanups for ktap.c

Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>