printk: remove unused code from kernel/printk.c