Fix compiler warning about unused d variable

Change-Id: Ia3ee8b13f1eacc435152149a1ee65fb62658506e
Reviewed-by: Giulio Camuffo <giulio.camuffo@jollamobile.com>