Skip to content
Snippets Groups Projects
Commit 1b69ce2f authored by xypron.glpk@gmx.de's avatar xypron.glpk@gmx.de Committed by Tom Rini
Browse files

arm: mvebu: ddr3_debug: remove self assignments


Remove superfluous self assignements.

Signed-off-by: default avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: default avatarStefan Roese <sr@denx.de>
parent a21d6363
No related branches found
No related tags found
No related merge requests found
...@@ -327,8 +327,6 @@ int ddr3_tip_print_log(u32 dev_num, u32 mem_addr) ...@@ -327,8 +327,6 @@ int ddr3_tip_print_log(u32 dev_num, u32 mem_addr)
u32 if_id = 0; u32 if_id = 0;
struct hws_topology_map *tm = ddr3_get_topology_map(); struct hws_topology_map *tm = ddr3_get_topology_map();
mem_addr = mem_addr;
#ifndef EXCLUDE_SWITCH_DEBUG #ifndef EXCLUDE_SWITCH_DEBUG
if ((is_validate_window_per_if != 0) || if ((is_validate_window_per_if != 0) ||
(is_validate_window_per_pup != 0)) { (is_validate_window_per_pup != 0)) {
...@@ -820,7 +818,6 @@ static int ddr3_tip_access_atr(u32 dev_num, u32 flag_id, u32 value, u32 **ptr) ...@@ -820,7 +818,6 @@ static int ddr3_tip_access_atr(u32 dev_num, u32 flag_id, u32 value, u32 **ptr)
u32 tmp_val = 0, if_id = 0, pup_id = 0; u32 tmp_val = 0, if_id = 0, pup_id = 0;
struct hws_topology_map *tm = ddr3_get_topology_map(); struct hws_topology_map *tm = ddr3_get_topology_map();
dev_num = dev_num;
*ptr = NULL; *ptr = NULL;
switch (flag_id) { switch (flag_id) {
...@@ -1169,8 +1166,6 @@ int print_adll(u32 dev_num, u32 adll[MAX_INTERFACE_NUM * MAX_BUS_NUM]) ...@@ -1169,8 +1166,6 @@ int print_adll(u32 dev_num, u32 adll[MAX_INTERFACE_NUM * MAX_BUS_NUM])
u32 i, j; u32 i, j;
struct hws_topology_map *tm = ddr3_get_topology_map(); struct hws_topology_map *tm = ddr3_get_topology_map();
dev_num = dev_num;
for (j = 0; j < tm->num_of_bus_per_interface; j++) { for (j = 0; j < tm->num_of_bus_per_interface; j++) {
VALIDATE_ACTIVE(tm->bus_act_mask, j); VALIDATE_ACTIVE(tm->bus_act_mask, j);
for (i = 0; i < MAX_INTERFACE_NUM; i++) { for (i = 0; i < MAX_INTERFACE_NUM; i++) {
...@@ -1229,8 +1224,6 @@ int ddr3_tip_sweep_test(u32 dev_num, u32 test_type, ...@@ -1229,8 +1224,6 @@ int ddr3_tip_sweep_test(u32 dev_num, u32 test_type,
u32 reg_addr = 0; u32 reg_addr = 0;
struct hws_topology_map *tm = ddr3_get_topology_map(); struct hws_topology_map *tm = ddr3_get_topology_map();
mem_addr = mem_addr;
if (test_type == 0) { if (test_type == 0) {
reg_addr = 1; reg_addr = 1;
ui_mask_bit = 0x3f; ui_mask_bit = 0x3f;
...@@ -1301,8 +1294,6 @@ int ddr3_tip_run_sweep_test(int dev_num, u32 repeat_num, u32 direction, ...@@ -1301,8 +1294,6 @@ int ddr3_tip_run_sweep_test(int dev_num, u32 repeat_num, u32 direction,
u32 max_cs = hws_ddr3_tip_max_cs_get(); u32 max_cs = hws_ddr3_tip_max_cs_get();
struct hws_topology_map *tm = ddr3_get_topology_map(); struct hws_topology_map *tm = ddr3_get_topology_map();
repeat_num = repeat_num;
if (mode == 1) { if (mode == 1) {
/* per pup */ /* per pup */
start_pup = 0; start_pup = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment