If the bomb is dropped on Europe the European war ends sooner, and the Americans probably get more of Germany in the post-war carve-up at the expense of the Soviets.
If the bomb is dropped on Japan earlier than in OTL, nothing of importance changes. The main event that prompted Japan's surrender was the Soviet invasion of Manchuria, not the atomic bombs, and the nukes were not as powerful as some of the massed B-29 attacks on Japanese cities.
However, if the European war ended sooner because of the atom bombs, the Soviet invasion of Manchuria would have probably happened earlier too. So yes, earlier atom bomb use would quicken the end of the war in the Pacific, but only if used against Germany.