Skip to content

Commit 22cde10

Browse files
Atul Kumar Pantpcmoore
authored andcommitted
audit: cleanup function braces and assignment-in-if-condition
The patch fixes following checkpatch.pl issue: ERROR: open brace '{' following function definitions go on the next line ERROR: do not use assignment in if condition Signed-off-by: Atul Kumar Pant <atulpant.linux@gmail.com> [PM: subject line tweaks] Signed-off-by: Paul Moore <paul@paul-moore.com>
1 parent 62acadd commit 22cde10

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

kernel/auditsc.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -880,7 +880,8 @@ static void audit_filter_syscall(struct task_struct *tsk,
880880
*/
881881
static int audit_filter_inode_name(struct task_struct *tsk,
882882
struct audit_names *n,
883-
struct audit_context *ctx) {
883+
struct audit_context *ctx)
884+
{
884885
int h = audit_hash_ino((u32)n->ino);
885886
struct list_head *list = &audit_inode_hash[h];
886887

@@ -1064,7 +1065,8 @@ int audit_alloc(struct task_struct *tsk)
10641065
return 0;
10651066
}
10661067

1067-
if (!(context = audit_alloc_context(state))) {
1068+
context = audit_alloc_context(state);
1069+
if (!context) {
10681070
kfree(key);
10691071
audit_log_lost("out of memory in audit_alloc");
10701072
return -ENOMEM;

0 commit comments

Comments
 (0)