polish

parent 75790349
...@@ -461,6 +461,8 @@ tus_file_fini(struct tus_file_core *fcore) ...@@ -461,6 +461,8 @@ tus_file_fini(struct tus_file_core *fcore)
fdisk = fcore->disk; fdisk = fcore->disk;
CHECK_TUS_FILE_DISK(fdisk); CHECK_TUS_FILE_DISK(fdisk);
AZ(fcore->srvref);
AZ(fcore->ref);
if (fdisk->type == TUS_FINAL) { if (fdisk->type == TUS_FINAL) {
tus_file_final_fini(fcore); tus_file_final_fini(fcore);
...@@ -486,13 +488,13 @@ tus_file_fini(struct tus_file_core *fcore) ...@@ -486,13 +488,13 @@ tus_file_fini(struct tus_file_core *fcore)
int int
tus_file_trylock(struct tus_file_core **fcorep) tus_file_trylock(struct tus_file_core **fcorep)
{ {
int err = EINVAL; int err;
struct tus_file_core *fcore; struct tus_file_core *fcore;
AN(fcorep); AN(fcorep);
fcore = *fcorep; fcore = *fcorep;
if (fcore == NULL) if (fcore == NULL)
return (err); return (EINVAL);
CHECK_OBJ(fcore, VMOD_TUS_FILE_CORE_MAGIC); CHECK_OBJ(fcore, VMOD_TUS_FILE_CORE_MAGIC);
do { 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