Oil ticks up as drop in US crude and gasoline stocks exceeds view