selftests: x86 protection_keys remove dead code
authorShuah Khan <shuahkh@osg.samsung.com>
Thu, 5 Jan 2017 21:11:00 +0000 (14:11 -0700)
committerShuah Khan <shuahkh@osg.samsung.com>
Wed, 11 Jan 2017 16:51:23 +0000 (09:51 -0700)
Remove commented out calls to pkey_get().

Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
tools/testing/selftests/x86/protection_keys.c

index 70402cd96265b161a3017fee9fbab7ce83f20129..46f53ec502f66447cbad88dd35f82eeee8f84c33 100644 (file)
@@ -1114,11 +1114,6 @@ void test_pkey_syscalls_on_non_allocated_pkey(int *ptr, u16 pkey)
                err = sys_pkey_free(i);
                pkey_assert(err);
 
-               /* not enforced when pkey_get() is not a syscall
-               err = pkey_get(i, 0);
-               pkey_assert(err < 0);
-               */
-
                err = sys_pkey_free(i);
                pkey_assert(err);
 
@@ -1133,11 +1128,6 @@ void test_pkey_syscalls_bad_args(int *ptr, u16 pkey)
        int err;
        int bad_pkey = NR_PKEYS+99;
 
-       /* not enforced when pkey_get() is not a syscall
-       err = pkey_get(bad_pkey, bad_flag);
-       pkey_assert(err < 0);
-       */
-
        /* pass a known-invalid pkey in: */
        err = sys_mprotect_pkey(ptr, PAGE_SIZE, PROT_READ, bad_pkey);
        pkey_assert(err);