v3dv: fix coverity warnings
We got some warnings from coverity:
https://scan.coverity.com/projects/mesa?tab=overview
This MR tries to handle them.
We got some warnings from coverity:
https://scan.coverity.com/projects/mesa?tab=overview
This MR tries to handle them.