I'm reading a book "A Mathematical Introduction to Fluid Mechanics" by Alexandre J. Chorin that says that the flow is isentropic if
$$ \nabla w = \frac{1}{\rho}\nabla p $$
where $w$ is an enthalpy, $\rho$ is density and $p$ is a pressure.
Then Chorin recalls the following two facts from thermodynamics
$$ dw = Tds + \frac{1}{\rho}dp $$ and $$ de = Tds + \frac{p}{\rho^2}d\rho $$ where $e$ is the internal energy, $s$ entropy and $T$ temperature.
But I do not understand the next claim of the book:
if $p$ is a function of $\rho$ only, then the flow is clearly isentropic.
Why is this true?