What the hell are they going to do if they catch you driving stoned? If you dont have anything on you, you're fine.

But yeah, I bet the cop knew you were stoned, they arent that stupid. He was just prolly being cool.