UKSM: cleanup uksm_do_scan()

Signed-off-by: Timofey Titovets <nefelim4ag@gmail.com>