[PATCH] arch: powerpc: platforms: ps3: repository.c: Remove unused function

From: Rickard Strandqvist
Date: Sat Dec 20 2014 - 09:57:19 EST


Remove the function ps3_repository_write_highmem_info() that is not used anywhere.

This was partially found by using a static code analysis program called cppcheck.

Signed-off-by: Rickard Strandqvist <rickard_strandqvist@xxxxxxxxxxxxxxxxxx>
---
arch/powerpc/platforms/ps3/platform.h | 2 --
arch/powerpc/platforms/ps3/repository.c | 10 ----------
2 files changed, 12 deletions(-)

diff --git a/arch/powerpc/platforms/ps3/platform.h b/arch/powerpc/platforms/ps3/platform.h
index d71329a..f15507c 100644
--- a/arch/powerpc/platforms/ps3/platform.h
+++ b/arch/powerpc/platforms/ps3/platform.h
@@ -201,8 +201,6 @@ int ps3_repository_write_highmem_base(unsigned int region_index,
u64 highmem_base);
int ps3_repository_write_highmem_size(unsigned int region_index,
u64 highmem_size);
-int ps3_repository_write_highmem_info(unsigned int region_index,
- u64 highmem_base, u64 highmem_size);
int ps3_repository_delete_highmem_info(unsigned int region_index);

/* repository pme info */
diff --git a/arch/powerpc/platforms/ps3/repository.c b/arch/powerpc/platforms/ps3/repository.c
index bfccdc7..2d5e56a 100644
--- a/arch/powerpc/platforms/ps3/repository.c
+++ b/arch/powerpc/platforms/ps3/repository.c
@@ -1160,16 +1160,6 @@ int ps3_repository_write_highmem_size(unsigned int region_index,
highmem_size, 0);
}

-int ps3_repository_write_highmem_info(unsigned int region_index,
- u64 highmem_base, u64 highmem_size)
-{
- int result;
-
- result = ps3_repository_write_highmem_base(region_index, highmem_base);
- return result ? result
- : ps3_repository_write_highmem_size(region_index, highmem_size);
-}
-
static int ps3_repository_delete_highmem_base(unsigned int region_index)
{
return delete_node(
--
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/