chiark / gitweb /
basic: remove redundant check (#7320)
authorTopi Miettinen <topimiettinen@users.noreply.github.com>
Mon, 13 Nov 2017 21:00:03 +0000 (21:00 +0000)
committerSven Eden <yamakuzure@gmx.net>
Mon, 13 Nov 2017 21:00:03 +0000 (21:00 +0000)
The check is redundant as the whole block is only evaluated if
__IGNORE_pkey_mprotect is not defined. Change to #else.

src/basic/missing_syscall.h

index 424dbff1a33c9c020f13671fcbc7c963d799b6cb..54c174744001e049c0e8070a99f8de84ec72edca 100644 (file)
@@ -375,7 +375,7 @@ static inline int bpf(int cmd, union bpf_attr *attr, size_t size) {
 #      if _MIPS_SIM == _MIPS_SIM_ABI64
 #        define __NR_pkey_mprotect 5323
 #      endif
-#    elif ! defined(__IGNORE_pkey_mprotect)
+#    else
 #      warning "__NR_pkey_mprotect not defined for your architecture"
 #    endif
 #  endif