cachefiles: tmpfile error handling cleanup
authorMiklos Szeredi <mszeredi@redhat.com>
Sat, 24 Sep 2022 04:59:59 +0000 (06:59 +0200)
committerMiklos Szeredi <mszeredi@redhat.com>
Sat, 24 Sep 2022 04:59:59 +0000 (06:59 +0200)
commit38017d44441efa695997d4f09d09d9d312f40088
tree7e8f9257e62b29af34130c04058fcee8ae6a66ad
parent19ee5345f23423d5bbd84a59112433592d584b4c
cachefiles: tmpfile error handling cleanup

Separate the error labels from the success path and use 'ret' to store the
error value before jumping to the error label.

Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/cachefiles/namei.c