Image copyright Instagram

Justin Timberlake has been spared a brush with the law after a picture he posted of himself voting caught the attention of Tennessee authorities.

The actor and pop star uploaded a picture to Instagram of him casting a ballot in Memphis.

It became illegal to take photos inside polling locations in Tennessee in 2015.

Timberlake flew from Los Angeles to his hometown of Memphis to cast an early ballot ahead of the 8 November election.

You might also like:

Senior US politician says TV presenter 'fascinated by sex'

University opens without any teachers

City inundated with cigarette butts

Earlier, the District Attorney's office said it had been "made aware of a possible violation of state election law" and the matter was "under review".

'Can't stop the feeling'

However, in a second statement, Shelby County District Attorney Amy Weirich said the initial response was "incorrect" and "released without my knowledge," according to Local Memphis.

"I am out of town at a conference. No one in our office is currently investigating this matter nor will we be using our limited resources to do so," she said.

Timberlake is one of a few million voters who have cast early ballots in a number of US states.

In his Instagram caption, the entertainer wrote to his 37 million followers: "No excuses, my good people!

"There could be early voting in your town too. If not, November 8th! Choose to have a voice! If you don't, then we can't HEAR YOU! Get out and VOTE!"

Any charge would have been considered a misdemeanor punishable by up to 30 days in jail or a fine of $50 (£41), or both.

Adam Ghassemi, a spokesman for the Tennessee Secretary of State, said people should only use their phones for help with voting.

But he added that officials are "thrilled Justin can't stop the feeling" - which is a reference to the title of the singer's latest song.

The singer also took a few moments outside the polling booth to snap some selfies with his fans.

Image copyright Twitter

It is illegal to take a photograph in a voting booth in 18 states in the US, according to the Associated Press.

However it is legal to take a photo in about 20 states and the District of Columbia.

On Monday, a federal court sided with a Michigan man who said the law there that bans voters from taking pictures of their marked ballots and sharing them on social media violated his constitutional right to free speech.

In response, the court halted enforcement of the law.

Also on Monday, two voters in Colorado filed a federal lawsuit seeking to overturn a state law that criminalised showing a completed ballot to others, arguing the ban was unconstitutional.

More on the US election