[gril] Clean useless cast and improve handle_unsol_req readability