Rafael Nadal entered the quarterfinals of the Shanghai Masters with a straight sets win over Fabio Fognini as he aims to win his maiden title.