McAfee, who launched the world's first commercial anti-virus software in 1987, was found dead, aged 75, on June 23, 2021, in his prison cell a few hours after Spain's high court authorised his extradition to the United States on tax evasion charges.
The British-American tech mogul had been in the Barcelona-area Brians 2 jail for eight months following his arrest after years on the run from U.S. authorities.
Although the autopsy had already determined he died by suicide, his family had filed an appeal asking for a more in-depth investigation into his death.
His body has been in a Barcelona morgue, waiting for the court process to be resolved.
"There is not a single element of suspicion, of a charge against a third party, of criminal behaviour," said the ruling, dated July 24 but released on Friday.
His family did not immediately respond to a request for comment.
The ruling can't be appealed before an ordinary court.
(Reporting by Emma Pinedo; Editing by Charlie Devereux and Anil D'Silva)

US software mogul John McAfee is seen inside a vehicle of the Guatemalan Migration heading towards the airport in Guatemala City, Guatemala, 12 December 2012 (reissued 05 March 2021). John McAfee and his executive adviser Jimmy Gale Watson jr. were indicted for fraud and money laundering conspiracy crimes over their alleged fraudulent promotion to investors of cryptocurrencies the US Department of Justice announced on 05 March 2021. EPA-EFE/Saul Martinez