ip_log: remove set-but-not-unused vars
(cherry picked from commit 664882ab168f7328c23ceaadb473dab794f835d8)