cgls: avoid writing an unused value

silences a build-scan warning for the unused value in r
bus-proxy: remove unused variable