In this April 30, 2016 file photo, Larry Wilmore speaks at the annual White House Correspondents' Association dinner in Washington. Wilmore says his "tone didn't fit the room" at the White House Correspondents Association dinner but believes his use of the term "n---a" to address President Obama may open an important dialogue for the country. The Comedy Central host said in an interview Tuesday, May 3, that he's willing to take the heat for his performance in Washington Saturday. (AP Photo/Susan Walsh, File)
In this April 30, 2016 file photo, Larry Wilmore speaks at the annual White House Correspondents’ Association dinner in Washington. Wilmore says his “tone didn’t fit the room” at the White House Correspondents Association dinner but believes his use of the term “n—a” to address President Obama may open an important dialogue for the country. The Comedy Central host said in an interview Tuesday, May 3, that he’s willing to take the heat for his performance in Washington Saturday. (AP Photo/Susan Walsh, File)

The White House said Monday that President Barack Obama wasn’t offended by comedian Larry Wilmore’s use of a racial slur at Saturday night’s White House Correspondents’ Association dinner.

Wilmore concluded his remarks noting progress on race and how much it meant to him that a black man was president. He concluded: “Yo Barry, you did it, my n—-. You did it.”

White House spokesman Josh Earnest said he talked with Obama, and Obama appreciated the spirit of racial progress Wilmore was trying to convey.

Earnest said the White House didn’t see Wilmore’s speech beforehand. Earnest also said he’s confident Wilmore used the word by design and was seeking to be provocative.

But Earnest said any fair reading makes clear that Wilmore’s sentiments of racial progress “came from a genuine place.”

Wilmore, on his Comedy Central show Monday, noted: “Like the president himself, the reaction was mixed,” a joking reference to Obama’s black father and white mother.

“I completely understand why people would be upset about that,” Wilmore said on “The Nightly Show.” “It’s a very charged word _ I get it.”

He said one critic, former CNN host Piers Morgan, had misquoted him by saying Wilmore used the word ending in “er.” Instead, Wilmore pointed out he used it ending in “a,” which he said was a term of endearment some black people use between each other to take back the power of the word to denigrate.