[tz] [PATCH 3/4] Fix minor problems found by static checking.