Skip to content

Commit a1fc793

Browse files
committed
selinux: fix style issues in security/selinux/ss/symtab.c
As part of on ongoing effort to perform more automated testing and provide more tools for individual developers to validate their patches before submitting, we are trying to make our code "clang-format clean". My hope is that once we have fixed all of our style "quirks", developers will be able to run clang-format on their patches to help avoid silly formatting problems and ensure their changes fit in well with the rest of the SELinux kernel code. Signed-off-by: Paul Moore <[email protected]>
1 parent 5fca473 commit a1fc793

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

security/selinux/ss/symtab.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
*
55
* Author : Stephen Smalley, <[email protected]>
66
*/
7+
78
#include <linux/kernel.h>
89
#include <linux/string.h>
910
#include <linux/errno.h>
@@ -19,7 +20,8 @@ static unsigned int symhash(const void *key)
1920
keyp = key;
2021
size = strlen(keyp);
2122
for (p = keyp; (p - keyp) < size; p++)
22-
val = (val << 4 | (val >> (8*sizeof(unsigned int)-4))) ^ (*p);
23+
val = (val << 4 | (val >> (8 * sizeof(unsigned int) - 4))) ^
24+
(*p);
2325
return val;
2426
}
2527

0 commit comments

Comments
 (0)