Anthony Davis scored 12 points and grabbed six rebounds in his return from injury as the Dallas Mavericks defeated the Brooklyn Nets 120-101.