Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 7b98aa6f authored by Nathan Chancellor's avatar Nathan Chancellor
Browse files

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: default avatarNathan Chancellor <natechancellor@gmail.com>
parent d8414567
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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 */