From 97b05d7d524a6b4f195f07b8f90e98561a85596c Mon Sep 17 00:00:00 2001 From: Wolfgang Denk Date: Sat, 28 Mar 2009 16:17:29 +0100 Subject: mpc8xx/ether.c: fix warning: unused variable 'bd' Also minor coding style cleanup. Signed-off-by: Wolfgang Denk --- post/cpu/mpc8xx/ether.c | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'post/cpu/mpc8xx') diff --git a/post/cpu/mpc8xx/ether.c b/post/cpu/mpc8xx/ether.c index fe6c39e..43ea817 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; -- cgit v1.1