selinux: drop return statement at end of void functions
Those return statements at the end of a void function are redundant. Reported by clang-tidy [readability-redundant-control-flow] Signed-off-by: Christian Göttsche <cgzones@googlemail.com> Signed-off-by: Paul Moore <paul@paul-moore.com>
This commit is contained in:
parent
3eb8eaf2ca
commit
5ea33af9d4
@ -3284,8 +3284,6 @@ static void selinux_inode_post_setxattr(struct dentry *dentry, const char *name,
|
|||||||
isec->sid = newsid;
|
isec->sid = newsid;
|
||||||
isec->initialized = LABEL_INITIALIZED;
|
isec->initialized = LABEL_INITIALIZED;
|
||||||
spin_unlock(&isec->lock);
|
spin_unlock(&isec->lock);
|
||||||
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int selinux_inode_getxattr(struct dentry *dentry, const char *name)
|
static int selinux_inode_getxattr(struct dentry *dentry, const char *name)
|
||||||
|
@ -566,8 +566,6 @@ void cond_compute_xperms(struct avtab *ctab, struct avtab_key *key,
|
|||||||
if (node->key.specified & AVTAB_ENABLED)
|
if (node->key.specified & AVTAB_ENABLED)
|
||||||
services_compute_xperms_decision(xpermd, node);
|
services_compute_xperms_decision(xpermd, node);
|
||||||
}
|
}
|
||||||
return;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
/* Determine whether additional permissions are granted by the conditional
|
/* Determine whether additional permissions are granted by the conditional
|
||||||
* av table, and if so, add them to the result
|
* av table, and if so, add them to the result
|
||||||
|
@ -359,7 +359,6 @@ void ebitmap_destroy(struct ebitmap *e)
|
|||||||
|
|
||||||
e->highbit = 0;
|
e->highbit = 0;
|
||||||
e->node = NULL;
|
e->node = NULL;
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int ebitmap_read(struct ebitmap *e, void *fp)
|
int ebitmap_read(struct ebitmap *e, void *fp)
|
||||||
|
@ -156,7 +156,6 @@ void mls_sid_to_context(struct policydb *p,
|
|||||||
}
|
}
|
||||||
|
|
||||||
*scontext = scontextp;
|
*scontext = scontextp;
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int mls_level_isvalid(struct policydb *p, struct mls_level *l)
|
int mls_level_isvalid(struct policydb *p, struct mls_level *l)
|
||||||
|
@ -529,8 +529,6 @@ out:
|
|||||||
/* release scontext/tcontext */
|
/* release scontext/tcontext */
|
||||||
kfree(tcontext_name);
|
kfree(tcontext_name);
|
||||||
kfree(scontext_name);
|
kfree(scontext_name);
|
||||||
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user