projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a87a77c
)
cpuidle/powernv : Remove dead code block
author
Abhishek Goel
<huntbag@linux.vnet.ibm.com>
Mon, 6 Jul 2020 05:32:58 +0000
(
00:32
-0500)
committer
Michael Ellerman
<mpe@ellerman.id.au>
Wed, 15 Jul 2020 01:07:20 +0000
(11:07 +1000)
Commit
1961acad2f88559c2cdd2ef67c58c3627f1f6e54
removes usage of
function "validate_dt_prop_sizes". This patch removes this unused
function.
Signed-off-by: Abhishek Goel <huntbag@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link:
https://lore.kernel.org/r/20200706053258.121475-1-huntbag@linux.vnet.ibm.com
drivers/cpuidle/cpuidle-powernv.c
patch
|
blob
|
history
diff --git
a/drivers/cpuidle/cpuidle-powernv.c
b/drivers/cpuidle/cpuidle-powernv.c
index
1b299e8
..
addaa6e
100644
(file)
--- a/
drivers/cpuidle/cpuidle-powernv.c
+++ b/
drivers/cpuidle/cpuidle-powernv.c
@@
-244,20
+244,6
@@
static inline void add_powernv_state(int index, const char *name,
stop_psscr_table[index].mask = psscr_mask;
}
-/*
- * Returns 0 if prop1_len == prop2_len. Else returns -1
- */
-static inline int validate_dt_prop_sizes(const char *prop1, int prop1_len,
- const char *prop2, int prop2_len)
-{
- if (prop1_len == prop2_len)
- return 0;
-
- pr_warn("cpuidle-powernv: array sizes don't match for %s and %s\n",
- prop1, prop2);
- return -1;
-}
-
extern u32 pnv_get_supported_cpuidle_states(void);
static int powernv_add_idle_states(void)
{