fix a warning about unused 'cancel' param

Change-Id: Ic19824d2e10990518d7554fbbc82bc8cc55ce01d