worker: use variable already set at beginning of loops
worker: use variable already set at beginning of loops

This is mainly question of style.
Instead of repeating same conversion use the variable we set at the
beginning of the function.
Note also that I used same name to make the two functions more
similar.

Signed-off-by: Frediano Ziglio <55d48b080b2e443e395cde84d2c83b135a4ff48e@redhat.com>
Acked-by: Pavel Grunt <fbda40b445316123f12a5a6bd7556918ea74f4bc@redhat.com>

SPICE/spice,SPICE/spice,fgouget/spice,fgouget/spice,SPICE/spice,fgouget/spice,fgouget/spice