summaryrefslogtreecommitdiff
path: root/post
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2009-03-28 16:17:29 +0100
committerWolfgang Denk <wd@denx.de>2009-03-28 16:17:29 +0100
commit97b05d7d524a6b4f195f07b8f90e98561a85596c (patch)
tree210408a74e00b7695e0bb11597bab7e387f583c5 /post
parent2dce551e10728f9e5655279f761f1d3cc0a8fe90 (diff)
mpc8xx/ether.c: fix warning: unused variable 'bd'
Also minor coding style cleanup. Signed-off-by: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'post')
-rw-r--r--post/cpu/mpc8xx/ether.c18
1 files changed, 12 insertions, 6 deletions
diff --git a/post/cpu/mpc8xx/ether.c b/post/cpu/mpc8xx/ether.c
index fe6c39eb3c3..43ea8177247 100644
--- a/post/cpu/mpc8xx/ether.c
+++ b/post/cpu/mpc8xx/ether.c
@@ -109,14 +109,20 @@ static RTXBD *rtx;
static void scc_init (int scc_index)
{
- bd_t *bd = gd->bd;
uchar ea[6];
- static int proff[] =
- { PROFF_SCC1, PROFF_SCC2, PROFF_SCC3, PROFF_SCC4 };
- static unsigned int cpm_cr[] =
- { CPM_CR_CH_SCC1, CPM_CR_CH_SCC2, CPM_CR_CH_SCC3,
-CPM_CR_CH_SCC4 };
+ static int proff[] = {
+ PROFF_SCC1,
+ PROFF_SCC2,
+ PROFF_SCC3,
+ PROFF_SCC4,
+ };
+ static unsigned int cpm_cr[] = {
+ CPM_CR_CH_SCC1,
+ CPM_CR_CH_SCC2,
+ CPM_CR_CH_SCC3,
+ CPM_CR_CH_SCC4,
+ };
int i;
scc_enet_t *pram_ptr;