Right-hander leaves Dodgers' win in second inning with shoulder discomfort