polish

parent 75790349
......@@ -461,6 +461,8 @@ tus_file_fini(struct tus_file_core *fcore)
fdisk = fcore->disk;
CHECK_TUS_FILE_DISK(fdisk);
AZ(fcore->srvref);
AZ(fcore->ref);
if (fdisk->type == TUS_FINAL) {
tus_file_final_fini(fcore);
......@@ -486,13 +488,13 @@ tus_file_fini(struct tus_file_core *fcore)
int
tus_file_trylock(struct tus_file_core **fcorep)
{
int err = EINVAL;
int err;
struct tus_file_core *fcore;
AN(fcorep);
fcore = *fcorep;
if (fcore == NULL)
return (err);
return (EINVAL);
CHECK_OBJ(fcore, VMOD_TUS_FILE_CORE_MAGIC);
do {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment