namei: reorganize a bit the error path for simples cases
authorsemarie <semarie@openbsd.org>
Sat, 20 Mar 2021 11:26:07 +0000 (11:26 +0000)
committersemarie <semarie@openbsd.org>
Sat, 20 Mar 2021 11:26:07 +0000 (11:26 +0000)
commitc2dd98f25b9d7181da4818325a7770905922ca39
tree4bb80e39d31425420a5a0bdfaad1b72b3f9f731d
parent52887a3857412054fd51c1af58c9c8fe944e10f7
namei: reorganize a bit the error path for simples cases

- move 'fail' label to end of function (instead of using the first
  if-condition)

- merge the most simples error code paths idioms from 'cleanup+return'
  to 'goto-fail'

ok mpi@
sys/kern/vfs_lookup.c