s6y Sunoco LP S-3ASR

Sunoco LP S-3ASR, filed May 7, 2015: Consent of experts

Exhibit 23.4

CONSENT OF INDEPENDENT REGISTERED PUBLIC ACCOUNTING FIRM

We consent to the reference to our firm under the caption “Experts” in this Registration Statement (Form S-3) and related Prospectus of Sunoco LP for the registration of common units representing limited partner interests and to the incorporation by reference therein of our reports dated February 27, 2015, with respect to the consolidated financial statements of Sunoco LP, and the effectiveness of internal control over financial reporting of Sunoco LP, included in its Annual Report (Form 10-K) for the year ended December 31, 2014, filed with the Securities and Exchange Commission.

/s/ ERNST & YOUNG LLP

Houston, TX

April 30, 2015