Remove an unneeded local var, a missing return statement in kernel search code, thanks to Greg Clayton for finding these.