A white guy I know got stopped in California by a black CHP cop for crossing a solid white line. He definitely did it, and it was definitely a violation.
He got out his ID/License, and the cop saw his NRA membership card. The cop immediately said “Mr. X, you realize what you did, right? You won’t do it again, right? There’s really no point in my giving you a ticket since you’ve learned your lesson, right?”.
$271 saved.
I’ve concluded that legally carrying is a very good idea in the event of most traffic stops. From.my experience, being polite and immediately revealing that one is legally carrying will usually make the cop either friendly or, at least, a lot less hostile.