From 7b98aa6fd865d04093d4a018aa1b9c05fa013502 Mon Sep 17 00:00:00 2001 From: Nathan Chancellor Date: Tue, 26 Feb 2019 13:17:02 -0700 Subject: [PATCH] ANDROID: cfi: Remove unused variable in ptr_to_check_fn An unused variable will be exposed by a backport of mainline commit 0a5f41767444 ("kbuild: clang: disable unused variable warnings only when constant"). kernel/cfi.c:231:16: warning: unused variable 'check' [-Wunused-variable] unsigned long check; ^ 1 warning generated. Remove it so there is no more warning. Change-Id: I05a4c20d2a54790991dc1c88c48d8258c548a8cd Signed-off-by: Nathan Chancellor --- kernel/cfi.c | 1 - 1 file changed, 1 deletion(-) diff --git a/kernel/cfi.c b/kernel/cfi.c index 3265b55efc22..967b0755c00e 100644 --- a/kernel/cfi.c +++ b/kernel/cfi.c @@ -229,7 +229,6 @@ static inline cfi_check_fn ptr_to_check_fn(const struct cfi_shadow __rcu *s, unsigned long ptr) { int index; - unsigned long check; if (unlikely(!s)) return NULL; /* No shadow available */