projects
/
project
/
bcm63xx
/
atf.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
18f705f
)
rockchip/rk3399: Remove unneeded if statement
author
Derek Basehore
<dbasehore@chromium.org>
Thu, 11 May 2017 06:22:02 +0000
(23:22 -0700)
committer
Caesar Wang
<wxt@rock-chips.com>
Thu, 8 Jun 2017 01:59:53 +0000
(09:59 +0800)
The removed if statement would make the same check that the for loop
it is in does to break out of the for loop, so it doesn't make any
sense to keep it there.
Change-Id: I819c29f9182e6de1fc47e418aed15ad38e8f9fa9
Signed-off-by: Derek Basehore <dbasehore@chromium.org>
plat/rockchip/rk3399/drivers/dram/suspend.c
patch
|
blob
|
history
diff --git
a/plat/rockchip/rk3399/drivers/dram/suspend.c
b/plat/rockchip/rk3399/drivers/dram/suspend.c
index 57fbfed92ecf67ef273b2f43dc0e08229a1696bb..e892844ea0db0cd5c8d6c8f60c7903add24c34b2 100644
(file)
--- a/
plat/rockchip/rk3399/drivers/dram/suspend.c
+++ b/
plat/rockchip/rk3399/drivers/dram/suspend.c
@@
-690,9
+690,6
@@
__sramfunc void dmc_restore(void)
retry:
for (channel = 0; channel < sdram_params->num_channels; channel++) {
phy_pctrl_reset(channel);
- if (channel >= sdram_params->num_channels)
- continue;
-
pctl_cfg(channel, sdram_params);
}