g2d: small code cleanup

Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>