X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=include%2Flinux%2Fpersonality.h;h=a84e9ff9b27e9d59cfd1f2d0e8b3403e21b07ca0;hb=13c48c490208d9e70d8d66d56f96c5054db69af7;hp=bf4cf2080e5cb1c0ba57abf88b7a85951fd0d7fb;hpb=d2c5f06e361f18be0d7b75988ce6a9e8800a8113;p=linux-2.6 diff --git a/include/linux/personality.h b/include/linux/personality.h index bf4cf2080e..a84e9ff9b2 100644 --- a/include/linux/personality.h +++ b/include/linux/personality.h @@ -105,16 +105,12 @@ struct exec_domain { */ #define personality(pers) (pers & PER_MASK) -/* - * Personality of the currently running process. - */ -#define get_personality (current->personality) /* * Change personality of the currently running process. */ #define set_personality(pers) \ - ((current->personality == pers) ? 0 : __set_personality(pers)) + ((current->personality == (pers)) ? 0 : __set_personality(pers)) #endif /* __KERNEL__ */