Skip to contentSkip to conversation

staging, unisys: remove leftover function kmalloc_kernel()

PATCH New WANG Chao 1 participant 1 message Oct 14, 2014 Staging

lore
Share & tools
lore

WANG Chao

author
#0 lore raw

PATCH 1/1 staging, unisys: remove leftover function kmalloc_kernel()

kmalloc_kernel() previously declared in timskmodutils.h which recently got removed. Now also remove kmalloc_kernel(), because it's not used anywhere.

---
 drivers/staging/unisys/visorutil/visorkmodutils.c | 10 ----------
 1 file changed, 10 deletions(-)
drivers/staging/unisys/visorutil/visorkmodutils.c +0 -10
index d6815f9..64b135d 100644
@@ -36,16 +36,6 @@
 int unisys_spar_platform;
 EXPORT_SYMBOL_GPL(unisys_spar_platform);
 
-/** Callers to interfaces that set __GFP_NORETRY flag below
- *  must check for a NULL (error) result as we are telling the
- *  kernel interface that it is okay to fail.
- */
-
-void *kmalloc_kernel(size_t siz)
-{
-	return kmalloc(siz, GFP_KERNEL | __GFP_NORETRY);
-}
-
 static __init uint32_t
 visorutil_spar_detect(void)
 {
Signature · 1 line
1.9.3