]> git.sur5r.net Git - u-boot/commitdiff
mpc8xx/ether.c: fix warning: unused variable 'bd'
authorWolfgang Denk <wd@denx.de>
Sat, 28 Mar 2009 15:17:29 +0000 (16:17 +0100)
committerWolfgang Denk <wd@denx.de>
Sat, 28 Mar 2009 15:17:29 +0000 (16:17 +0100)
Also minor coding style cleanup.

Signed-off-by: Wolfgang Denk <wd@denx.de>
post/cpu/mpc8xx/ether.c

index fe6c39eb3c335ef36fe0fbd12b8ea850a628c159..43ea81772479c361f9e08da3347461e4a304b32a 100644 (file)
@@ -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;