[PATCH 5/5] staging: gasket: remove gasket_page_table_num_extended_entries()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



It is exported, yet no one calls it so just remove the dead code.

Cc: Rob Springer <rspringer@xxxxxxxxxx>
Cc: John Joseph <jnjoseph@xxxxxxxxxx>
Cc: Ben Chan <benchan@xxxxxxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
---
 drivers/staging/gasket/gasket_page_table.c | 11 -----------
 drivers/staging/gasket/gasket_page_table.h |  7 -------
 2 files changed, 18 deletions(-)

diff --git a/drivers/staging/gasket/gasket_page_table.c b/drivers/staging/gasket/gasket_page_table.c
index f00a8f1d07e1..daf633459329 100644
--- a/drivers/staging/gasket/gasket_page_table.c
+++ b/drivers/staging/gasket/gasket_page_table.c
@@ -639,17 +639,6 @@ uint gasket_page_table_num_simple_entries(struct gasket_page_table *pg_tbl)
 EXPORT_SYMBOL(gasket_page_table_num_simple_entries);
 
 /* See gasket_page_table.h for description. */
-uint gasket_page_table_num_extended_entries(struct gasket_page_table *pg_tbl)
-{
-	if (!pg_tbl) {
-		gasket_nodev_error("Passed a null page table.");
-		return 0;
-	}
-
-	return pg_tbl->num_extended_entries;
-}
-EXPORT_SYMBOL(gasket_page_table_num_extended_entries);
-
 uint gasket_page_table_num_active_pages(struct gasket_page_table *pg_tbl)
 {
 	if (!pg_tbl) {
diff --git a/drivers/staging/gasket/gasket_page_table.h b/drivers/staging/gasket/gasket_page_table.h
index d8d031cf16a2..720ce2bc2c01 100644
--- a/drivers/staging/gasket/gasket_page_table.h
+++ b/drivers/staging/gasket/gasket_page_table.h
@@ -201,13 +201,6 @@ uint gasket_page_table_num_entries(struct gasket_page_table *page_table);
  */
 uint gasket_page_table_num_simple_entries(struct gasket_page_table *page_table);
 
-/*
- * Gets the number of extended entries.
- * @page_table: Gasket page table pointer.
- */
-uint gasket_page_table_num_extended_entries(
-	struct gasket_page_table *page_table);
-
 /*
  * Gets the number of actively pinned pages.
  * @page_table: Gasket page table pointer.
-- 
2.18.0

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel



[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux