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 <natechancellor@gmail.com>
tirimbino
Nathan Chancellor 6 years ago
parent d8414567db
commit 7b98aa6fd8
No known key found for this signature in database
GPG Key ID: 99739260CB6CB716
  1. 1
      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 */

Loading…
Cancel
Save