소스 검색

selinux: Delete an unnecessary return statement in cond_compute_av()

The script "checkpatch.pl" pointed information out like the following.

WARNING: void function return statements are not generally useful

Thus remove such a statement in the affected function.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Paul Moore <paul@paul-moore.com>
Markus Elfring 8 년 전
부모
커밋
e34cfef901
1개의 변경된 파일0개의 추가작업 그리고 1개의 파일을 삭제
  1. 0 1
      security/selinux/ss/conditional.c

+ 0 - 1
security/selinux/ss/conditional.c

@@ -664,5 +664,4 @@ void cond_compute_av(struct avtab *ctab, struct avtab_key *key,
 				(node->key.specified & AVTAB_XPERMS))
 				(node->key.specified & AVTAB_XPERMS))
 			services_compute_xperms_drivers(xperms, node);
 			services_compute_xperms_drivers(xperms, node);
 	}
 	}
-	return;
 }
 }