linuxkpi: drop single-use variable
(cherry picked from commit 8011fb795baa59ba14371d6db5ab661a5db77615)