diff options
author | Shreyas B. Prabhu <shreyas@linux.vnet.ibm.com> | 2016-06-17 09:51:46 +0530 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2016-06-20 14:32:47 +1000 |
commit | b1b9fafb0cb0ba278c526083ff387d9eaf2bb3cb (patch) | |
tree | 727a733c801a877f1ebe940e26f55f69841b0704 | |
parent | be7394f9083df569d865f72f43e70a0a37ffb2d1 (diff) | |
download | skiboot-b1b9fafb0cb0ba278c526083ff387d9eaf2bb3cb.zip skiboot-b1b9fafb0cb0ba278c526083ff387d9eaf2bb3cb.tar.gz skiboot-b1b9fafb0cb0ba278c526083ff387d9eaf2bb3cb.tar.bz2 |
slw: Remove unnecessary type casting cast
Suggested-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Shreyas B. Prabhu <shreyas@linux.vnet.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
-rw-r--r-- | hw/slw.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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; |