Just remember one simple funda.
Whenever we are dividing "n" or any given variable by 2 till it reaches to the certain value or mostly 0. Then the complexity is logn.
But in the above case, you are just finding the smallest element in the array of size n/2 and not dividing changing n again and again.
So complexity will be equal to O(n/2) = O(n).