Fixed Perl::Critic errors in Kernel/GenericInterface.