[Skiboot] [PATCH v4 3/8] slw: Remove unnecessary type casting cast
Shreyas B. Prabhu
shreyas at linux.vnet.ibm.com
Thu Jun 16 23:56:15 AEST 2016
Suggested-by: Michael Neuling <mikey at neuling.org>
Signed-off-by: Shreyas B. Prabhu <shreyas at linux.vnet.ibm.com>
---
- Newly added in v4
hw/slw.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/hw/slw.c b/hw/slw.c
index 38d5cf5e01c5..638ce949457c 100644
--- a/hw/slw.c
+++ b/hw/slw.c
@@ -581,13 +581,13 @@ void add_cpu_idle_state_properties(void)
*/
/* Allocate memory to idle state property buffers. */
- alloced_name_buf= (char *) malloc(nr_states * sizeof(char) * MAX_NAME_LEN);
+ alloced_name_buf= malloc(nr_states * sizeof(char) * MAX_NAME_LEN);
name_buf = alloced_name_buf;
- latency_ns_buf = (u32 *) malloc(nr_states * sizeof(u32));
- residency_ns_buf= (u32 *) malloc(nr_states * sizeof(u32));
- flags_buf = (u32 *) malloc(nr_states * sizeof(u32));
- pmicr_buf = (u64 *) malloc(nr_states * sizeof(u64));
- pmicr_mask_buf = (u64 *) malloc(nr_states * sizeof(u64));
+ latency_ns_buf = malloc(nr_states * sizeof(u32));
+ residency_ns_buf= malloc(nr_states * sizeof(u32));
+ flags_buf = malloc(nr_states * sizeof(u32));
+ pmicr_buf = malloc(nr_states * sizeof(u64));
+ pmicr_mask_buf = malloc(nr_states * sizeof(u64));
name_buf_len = 0;
num_supported_idle_states = 0;
--
1.9.3
More information about the Skiboot
mailing list