Merge tag 'notifications-20200601' of git://git.kernel.org/pub/scm/linux/kernel/git...
[platform/kernel/linux-rpi.git] / security / keys / internal.h
index 1fc17cb..338a526 100644 (file)
@@ -378,15 +378,4 @@ static inline void key_check(const struct key *key)
 #define key_check(key) do {} while(0)
 
 #endif
-
-/*
- * Helper function to clear and free a kvmalloc'ed memory object.
- */
-static inline void __kvzfree(const void *addr, size_t len)
-{
-       if (addr) {
-               memset((void *)addr, 0, len);
-               kvfree(addr);
-       }
-}
 #endif /* _INTERNAL_H */