]> git.sur5r.net Git - u-boot/commitdiff
Code cleanup: fix old style assignment ambiguities like "=-" etc.
authorWolfgang Denk <wd@denx.de>
Mon, 14 Jul 2008 13:19:07 +0000 (15:19 +0200)
committerWolfgang Denk <wd@denx.de>
Mon, 14 Jul 2008 13:19:07 +0000 (15:19 +0200)
Signed-off-by: Wolfgang Denk <wd@denx.de>
31 files changed:
board/BuS/EB+MCF-EV123/cfm_flash.c
board/BuS/EB+MCF-EV123/flash.c
board/MAI/AmigaOneG3SE/ps2kbd.c
board/MAI/AmigaOneG3SE/usb_uhci.c
board/esd/cpci750/sdram_init.c
board/evb64260/eth.c
board/evb64260/mpsc.c
board/ml2/flash.c
board/mpl/common/common_util.c
board/mpl/common/flash.c
board/mpl/common/kbd.c
board/mpl/common/usb_uhci.c
board/tqc/tqm5200/cmd_stk52xx.c
common/cmd_fdc.c
common/cmd_flash.c
common/cmd_fpga.c
common/cmd_scsi.c
common/cmd_usb.c
common/devices.c
common/flash.c
common/hush.c
common/lcd.c
common/usb.c
common/usb_kbd.c
common/usb_storage.c
cpu/ppc4xx/40x_spd_sdram.c
drivers/block/sym53c8xx.c
drivers/input/pc_keyb.c
drivers/pci/fsl_pci_init.c
tools/updater/cmd_flash.c
tools/updater/flash.c

index b32638410228568a4fe098936d8c772d48c0c527..98e563fc5c5df272ae211aed0add616f4c3f2fc5 100644 (file)
@@ -173,7 +173,7 @@ int cfm_flash_write_buff (flash_info_t * info, uchar * src, ulong addr, ulong cn
        dest = cmf_backdoor_address(addr);
        while ((cnt>=4) && (rc == ERR_OK))
        {
-               data =*((volatile u32 *) src);
+               data = *((volatile u32 *) src);
                *(volatile u32*) dest = data;
                MCFCFM_CMD = MCFCFM_CMD_PGM;
                MCFCFM_USTAT = MCFCFM_USTAT_CBEIF;
index 5e2647ddadffe61e3729d29d2ff5c9a9f0940f23..c2a1b6ff62dfc59f38b9e5f991396b9021ca0175 100644 (file)
@@ -348,7 +348,7 @@ int amd_flash_write_buff(flash_info_t * info, uchar * src, ulong addr, ulong cnt
        dest = addr;
        while ((cnt>=2) && (rc == ERR_OK))
        {
-               data =*((volatile u16 *) src);
+               data = *((volatile u16 *) src);
                rc=amd_write_word (info,dest,data);
                src +=2;
                dest +=2;
index 39d81496327a25b8c7df2f81f04aafeced139b48..724a44db7da82e99bc1c54151a789aa2c3c4eb9c 100644 (file)
@@ -229,7 +229,7 @@ int drv_isa_kbd_init (void)
        device_t kbddev ;
        char *stdinname  = getenv ("stdin");
 
-       if(isa_kbd_init()==-1)
+       if(isa_kbd_init() == -1)
                return -1;
        memset (&kbddev, 0, sizeof(kbddev));
        strcpy(kbddev.name, DEVNAME);
@@ -515,7 +515,7 @@ int kbd_read_data(void)
        int val;
        unsigned char status;
 
-       val=-1;
+       val = -1;
        status = kbd_read_status();
        if (status & KBD_STAT_OBF) {
                val = kbd_read_input();
index 479beedc4df8767ae290a2fa407b8a2b0295d624..26cdcdf7604c9f5600ec4fc9a2e86ce6406d3f56 100644 (file)
@@ -518,7 +518,7 @@ void usb_check_int_chain(void)
        uhci_td_t *td,*prevtd;
 
        for(i=0;i<8;i++) {
-               prevtd=&td_int[i]; /* the first previous td is the skeleton td */
+               prevtd = &td_int[i]; /* the first previous td is the skeleton td */
                link=swap_32(td_int[i].link) & 0xfffffff0; /* next in chain */
                td=(uhci_td_t *)link; /* assign it */
                /* all interrupt TDs are finally linked to the td_int[0].
@@ -595,7 +595,7 @@ int usb_lowlevel_init(void)
 
 
        busdevfunc=pci_find_device(USB_UHCI_VEND_ID,USB_UHCI_DEV_ID,0); /* get PCI Device ID */
-       if(busdevfunc==-1) {
+       if(busdevfunc == -1) {
                printf("Error USB UHCI (%04X,%04X) not found\n",USB_UHCI_VEND_ID,USB_UHCI_DEV_ID);
                return -1;
        }
@@ -642,12 +642,12 @@ int usb_lowlevel_init(void)
  */
 int usb_lowlevel_stop(void)
 {
-       if(irqvec==-1)
+       if(irqvec == -1)
                return 1;
        irq_free_handler(irqvec);
        irq_free_handler(0);
        reset_hc();
-       irqvec=-1;
+       irqvec = -1;
        return 0;
 }
 
index a479f0f5f83672440a7a18f8c1e007e8baf80778..0291937e0b30b5fbe7f65c5c678956521280b384 100644 (file)
@@ -1570,8 +1570,8 @@ dram_size(long int *base, long int maxsize)
     for (cnt = STARTVAL/sizeof(long); cnt < maxsize/sizeof(long); cnt <<= 1) {
            addr = base + cnt;  /* pointer arith! */
 
-           save1=*addr;                /* save contents of addr */
-           save2=*b;           /* save contents of base */
+           save1 = *addr;              /* save contents of addr */
+           save2 = *b;         /* save contents of base */
 
            *addr=cnt;          /* write cnt to addr */
            *b=0;                       /* put null at base */
index 618af6f90c54d9494adfb621367609cb3154733b..fa5b6d4a923a7342d7c2406f24077f75258b3f96 100644 (file)
@@ -163,7 +163,7 @@ gt6426x_eth_receive(struct eth_dev_s *p,unsigned int icr)
        int eth_len=0;
        char *eth_data;
 
-       eth0_rx_desc_single *rx=&p->eth_rx_desc[(p->rdn)];
+       eth0_rx_desc_single *rx = &p->eth_rx_desc[(p->rdn)];
 
        INVALIDATE_DCACHE((unsigned int)rx,(unsigned int)(rx+1));
 
@@ -252,7 +252,7 @@ gt6426x_eth_transmit(void *v, volatile char *p, unsigned int s)
 #ifdef DEBUG
        unsigned int old_command_stat,old_psr;
 #endif
-       eth0_tx_desc_single *tx=&dev->eth_tx_desc[dev->tdn];
+       eth0_tx_desc_single *tx = &dev->eth_tx_desc[dev->tdn];
 
        /* wait for tx to be ready */
        INVALIDATE_DCACHE((unsigned int)tx,(unsigned int)(tx+1));
index 9e8bfe01c4ef6c3a176dc99bf9299ee3d010677e..3b338c72eea98f35a4f63c209ae11e3ede7941f3 100644 (file)
@@ -259,7 +259,7 @@ char mpsc_getchar (void)
 int
 mpsc_test_char(void)
 {
-       volatile unsigned int *p=&rx_desc_base[rx_desc_index*8];
+       volatile unsigned int *p = &rx_desc_base[rx_desc_index*8];
 
        INVALIDATE_DCACHE(&p[1], &p[2]);
 
index 87cb1ff18e1f76a4389c826bbe446442b526da86..ad0f0752bbfb8e54c999526fde29724f22e18d4f 100644 (file)
@@ -222,7 +222,7 @@ static int write_word (flash_info_t *info, ulong dest, unsigned long long data)
        unsigned long long result;
        int rc = ERR_OK;
 
-       result=*addr;
+       result = *addr;
        if ((result & data) != data)
                return ERR_NOT_ERASED;
 
@@ -234,7 +234,7 @@ static int write_word (flash_info_t *info, ulong dest, unsigned long long data)
        eieio();
 
        do {
-               result=*addr;
+               result = *addr;
        } while(~result & BIT_BUSY);
 
        *addr=CMD_READ_ARRAY;
@@ -275,7 +275,7 @@ int write_buff (flash_info_t *info, uchar *src, ulong addr, ulong cnt) {
        }
 
        while(cnt>=8) {
-               data=*((unsigned long long *)src);
+               data = *((unsigned long long *)src);
                if ((rc = write_word(info, wp, data)) != 0)
                        return rc;
                src+=8;
index 11d4345125474184f1ed72d224d044079fc6fdd7..24ce807857413d3a7eda718396ab9717290b597c 100644 (file)
@@ -357,8 +357,8 @@ void copy_old_env(ulong size)
        unsigned off;
        uchar *name, *value;
 
-       name=&name_buf[0];
-       value=&value_buf[0];
+       name = &name_buf[0];
+       value = &value_buf[0];
        len=size;
        off = sizeof(long);
        while (len > off) {
@@ -377,8 +377,8 @@ void copy_old_env(ulong size)
                                if(c == '\0')
                                        break;
                        } while(len > off);
-                       name=&name_buf[0];
-                       value=&value_buf[0];
+                       name = &name_buf[0];
+                       value = &value_buf[0];
                        if(strncmp((char *)name,"baudrate",8)!=0) {
                                setenv((char *)name,(char *)value);
                        }
@@ -636,12 +636,12 @@ void video_get_info_str (int line_number, char *info)
                                        ++s;
                                        break;
                                }
-                               buf[i++]=*s;
+                               buf[i++] = *s;
                        }
                        sprintf(&buf[i]," SN ");
                        i+=4;
                        for (; s < e; ++s) {
-                               buf[i++]=*s;
+                               buf[i++] = *s;
                        }
                        buf[i++]=0;
                }
index a437dab1c6b8b8776c8ba480131e32459e5a12be..eb2702b6dfd7d0866c5ba7fcf94c38c51f5b2b82 100644 (file)
@@ -160,7 +160,7 @@ unsigned long flash_init (void)
        unsigned long size_b1,flashcr,size_reg;
        int mode;
        extern char version_string;
-       char *p=&version_string;
+       char *p = &version_string;
 
        /* Since we are relocated, we can set-up the CS finally */
        setup_cs_reloc();
index 931ed43083a6d9430ff171114b8c41779ac5d370..b20b9532b11b5db62b402303866fa2a31a8dbedd 100644 (file)
@@ -475,7 +475,7 @@ int kbd_read_data(void)
        int val;
        unsigned char status;
 
-       val=-1;
+       val = -1;
        status = kbd_read_status();
        if (status & KBD_STAT_OBF) {
                val = kbd_read_input();
index 6778e4098c9847f3c34f4fd3f4e331ec50fb872c..666b999e372e9934cd3d03f10f1739ce98b0f06f 100644 (file)
@@ -536,7 +536,7 @@ void usb_check_int_chain(void)
        uhci_td_t *td,*prevtd;
 
        for(i=0;i<8;i++) {
-               prevtd=&td_int[i]; /* the first previous td is the skeleton td */
+               prevtd = &td_int[i]; /* the first previous td is the skeleton td */
                link=swap_32(td_int[i].link) & 0xfffffff0; /* next in chain */
                td=(uhci_td_t *)link; /* assign it */
                /* all interrupt TDs are finally linked to the td_int[0].
@@ -638,7 +638,7 @@ int usb_lowlevel_stop(void)
                return 1;
        irq_free_handler(irqvec);
        reset_hc();
-       irqvec=-1;
+       irqvec = -1;
        return 0;
 }
 
index 58039d4170c5e2ca322d658757ba6406c55f01cc..fd1e68bbb5a4523f984f203868e18e73ef1197c4 100644 (file)
@@ -192,10 +192,10 @@ static int i2s_play_wave(unsigned long addr, unsigned long len)
        psc->command = (PSC_RX_ENABLE | PSC_TX_ENABLE);
 
        for(i = 0;i < (len / 4); i++) {
-               swapped[3]=*wave_file++;
-               swapped[2]=*wave_file++;
-               swapped[1]=*wave_file++;
-               swapped[0]=*wave_file++;
+               swapped[3] = *wave_file++;
+               swapped[2] = *wave_file++;
+               swapped[1] = *wave_file++;
+               swapped[0] = *wave_file++;
                psc->psc_buffer_32 =  *((unsigned long*)swapped);
                while (psc->tfnum > 400) {
                        if(ctrlc())
index e4fbf29a2213d3ce278e7df60436a76e175c393f..8493defe93473dfd13f78b5aa211ddb621695478 100644 (file)
@@ -512,7 +512,7 @@ int fdc_read_data(unsigned char *buffer, unsigned long blocks,FDC_COMMAND_STRUCT
        if(readblk>blocks) /* is end within 1st track */
                readblk=blocks; /* yes, correct it */
        PRINTF("we read %ld blocks start %ld\n",readblk,pCMD->blnr);
-       bufferw=&buffer[0]; /* setup working buffer */
+       bufferw = &buffer[0]; /* setup working buffer */
        do {
 retryrw:
                len=sect_size * readblk;
@@ -566,7 +566,7 @@ retryrw:
                 * we need to get the results */
                fdc_terminate(pCMD);
                offset+=(sect_size*readblk); /* set up buffer pointer */
-               bufferw=&buffer[offset];
+               bufferw = &buffer[offset];
                pCMD->blnr+=readblk; /* update current block nr */
                blocks-=readblk; /* update blocks */
                if(blocks==0)
index 9bd8074bfb39114779931dcdeface26b59b134bb..a7f66ddbfadd35c1b7f939f2f73dc5ff078d0ade 100644 (file)
@@ -210,7 +210,7 @@ flash_fill_sect_ranges (ulong addr_first, ulong addr_last,
                s_last [bank] = -1;     /* last  sector to erase        */
        }
 
-       for (bank=0,info=&flash_info[0];
+       for (bank=0,info = &flash_info[0];
             (bank < CFG_MAX_FLASH_BANKS) && (addr_first <= addr_last);
             ++bank, ++info) {
                ulong b_end;
@@ -427,7 +427,7 @@ int flash_sect_erase (ulong addr_first, ulong addr_last)
                                        s_first, s_last, &planned );
 
        if (planned && (rcode == 0)) {
-               for (bank=0,info=&flash_info[0];
+               for (bank=0,info = &flash_info[0];
                     (bank < CFG_MAX_FLASH_BANKS) && (rcode == 0);
                     ++bank, ++info) {
                        if (s_first[bank]>=0) {
@@ -651,7 +651,7 @@ int flash_sect_protect (int p, ulong addr_first, ulong addr_last)
        protected = 0;
 
        if (planned && (rcode == 0)) {
-               for (bank=0,info=&flash_info[0]; bank < CFG_MAX_FLASH_BANKS; ++bank, ++info) {
+               for (bank=0,info = &flash_info[0]; bank < CFG_MAX_FLASH_BANKS; ++bank, ++info) {
                        if (info->flash_id == FLASH_UNKNOWN) {
                                continue;
                        }
index 9141dcce92136f7d3da8c6907d0692d768376cda..dcbbc993dd271ff8b17d535abb5bbbbf47be0152 100644 (file)
@@ -85,7 +85,7 @@ int fpga_loadbitstream(unsigned long dev, char* fpgadata, size_t size)
        length = (*dataptr << 8) + *(dataptr+1);
        dataptr+=2;
        for(i=0;i<length;i++)
-               buffer[i]=*dataptr++;
+               buffer[i] = *dataptr++;
 
        printf("  design filename = \"%s\"\n", buffer);
 
@@ -99,7 +99,7 @@ int fpga_loadbitstream(unsigned long dev, char* fpgadata, size_t size)
        length = (*dataptr << 8) + *(dataptr+1);
        dataptr+=2;
        for(i=0;i<length;i++)
-               buffer[i]=*dataptr++;
+               buffer[i] = *dataptr++;
        printf("  part number = \"%s\"\n", buffer);
 
        /* get date (identifier, length, string) */
@@ -112,7 +112,7 @@ int fpga_loadbitstream(unsigned long dev, char* fpgadata, size_t size)
        length = (*dataptr << 8) + *(dataptr+1);
        dataptr+=2;
        for(i=0;i<length;i++)
-               buffer[i]=*dataptr++;
+               buffer[i] = *dataptr++;
        printf("  date = \"%s\"\n", buffer);
 
        /* get time (identifier, length, string) */
@@ -124,7 +124,7 @@ int fpga_loadbitstream(unsigned long dev, char* fpgadata, size_t size)
        length = (*dataptr << 8) + *(dataptr+1);
        dataptr+=2;
        for(i=0;i<length;i++)
-               buffer[i]=*dataptr++;
+               buffer[i] = *dataptr++;
        printf("  time = \"%s\"\n", buffer);
 
        /* get fpga data length (identifier, length) */
index e648f7d6014eb1bf31f8eb972b6d222e6a582bfa..f3574650ce831ad0d90f1288058b30db8a7f19ec 100644 (file)
@@ -171,7 +171,7 @@ removable:
        if(scsi_max_devs>0)
                scsi_curr_dev=0;
        else
-               scsi_curr_dev=-1;
+               scsi_curr_dev = -1;
 }
 
 
index 30caa98ea738020832b78dcdd15c7595e4a03025..c62ca9769cbb5db421d9df33e83c1f23351a47d2 100644 (file)
@@ -32,7 +32,7 @@
 #include <usb.h>
 
 #ifdef CONFIG_USB_STORAGE
-static int usb_stor_curr_dev=-1; /* current device */
+static int usb_stor_curr_dev = -1; /* current device */
 #endif
 
 /* some display routines (info command) */
index ddf8f8ee2d9f8d9c220cb73198ee93a0b5335c87..9cc963ac204efbd7c965937ef22fee5f402883ef 100644 (file)
@@ -125,7 +125,7 @@ int device_deregister(char *devname)
        device_t *dev = NULL;
        char temp_names[3][8];
 
-       dev_index=-1;
+       dev_index = -1;
        for (i=1; i<=ListNumItems(devlist); i++) {
                dev = ListGetPtrToItem (devlist, i);
                if(strcmp(dev->name,devname)==0) {
index 888ff9c67c676918f5bed737bccb93e7ae058c1d..fe39d55ef67386c7b3bbc0b3ac8bcfef7a19ea77 100644 (file)
@@ -104,7 +104,7 @@ addr2info (ulong addr)
        flash_info_t *info;
        int i;
 
-       for (i=0, info=&flash_info[0]; i<CFG_MAX_FLASH_BANKS; ++i, ++info) {
+       for (i=0, info = &flash_info[0]; i<CFG_MAX_FLASH_BANKS; ++i, ++info) {
                if (info->flash_id != FLASH_UNKNOWN &&
                    addr >= info->start[0] &&
                    /* WARNING - The '- 1' is needed if the flash
index b43f6185acf5360d335a063fd0405fd82b5ecce9..75c18ce8ae0b58d9273916842ecc78caa9f1e5ac 100644 (file)
@@ -953,7 +953,7 @@ static int b_adduint(o_string *o, unsigned int i)
 
 static int static_get(struct in_str *i)
 {
-       int ch=*i->p++;
+       int ch = *i->p++;
        if (ch=='\0') return EOF;
        return ch;
 }
@@ -1104,7 +1104,7 @@ static int file_get(struct in_str *i)
        ch = 0;
        /* If there is data waiting, eat it up */
        if (i->p && *i->p) {
-               ch=*i->p++;
+               ch = *i->p++;
        } else {
                /* need to double check i->file because we might be doing something
                 * more complicated by now, like sourcing or substituting. */
@@ -1121,7 +1121,7 @@ static int file_get(struct in_str *i)
                        i->__promptme = 0;
 #endif
                        if (i->p && *i->p) {
-                               ch=*i->p++;
+                               ch = *i->p++;
                        }
 #ifndef __U_BOOT__
                } else {
index 04ef4e387711f17d15788052e99da9c8203a7de5..eec1f53b0a784655384f43dabe9509d653b1fe0b 100644 (file)
@@ -728,7 +728,7 @@ int lcd_display_bitmap(ulong bmp_image, int x, int y)
                WATCHDOG_RESET();
                for (j = 0; j < width ; j++)
 #if defined(CONFIG_PXA250)
-                       *(fb++)=*(bmap++);
+                       *(fb++) = *(bmap++);
 #elif defined(CONFIG_MPC823) || defined(CONFIG_MCC200)
                        *(fb++)=255-*(bmap++);
 #endif
index a0107dca5373602f3172c85990925036109a754d..a45d113a74fb8ab89022883a0568077d3913be19 100644 (file)
@@ -252,7 +252,7 @@ int usb_set_maxpacket(struct usb_device *dev)
 
        for(i=0; i<dev->config.bNumInterfaces;i++) {
                for(ii=0; ii<dev->config.if_desc[i].bNumEndpoints; ii++) {
-                       ep=&dev->config.if_desc[i].ep_desc[ii];
+                       ep = &dev->config.if_desc[i].ep_desc[ii];
                        b=ep->bEndpointAddress & USB_ENDPOINT_NUMBER_MASK;
 
                        if((ep->bmAttributes & USB_ENDPOINT_XFERTYPE_MASK)==USB_ENDPOINT_XFER_CONTROL) {        /* Control => bidirectional */
@@ -627,7 +627,7 @@ int usb_string(struct usb_device *dev, int index, char *buf, size_t size)
        if (size <= 0 || !buf || !index)
                return -1;
        buf[0] = 0;
-       tbuf=&mybuf[0];
+       tbuf = &mybuf[0];
 
        /* get langid for strings if it's not yet known */
        if (!dev->have_langid) {
@@ -857,7 +857,7 @@ void usb_scan_devices(void)
        /* first make all devices unknown */
        for(i=0;i<USB_MAX_DEVICE;i++) {
                memset(&usb_dev[i],0,sizeof(struct usb_device));
-               usb_dev[i].devnum=-1;
+               usb_dev[i].devnum = -1;
        }
        dev_index=0;
        /* device 0 is always present (root hub, so let it analyze) */
index 1e79208d7ce5486115c8defa016c57e8ae9c1915..c8764952ecc0733ff9fc35ba63fee745fac54899 100644 (file)
@@ -730,8 +730,8 @@ static int usb_kbd_get_hid_desc(struct usb_device *dev)
                return -1;
        }
        printf(" report descriptor (size %u, read %d)\n", len, index);
-       start=&buffer[0];
-       end=&buffer[len];
+       start = &buffer[0];
+       end = &buffer[len];
        i=0;
        do {
                index=fetch_item(start,end,&item);
index 3e113b4084ee64bb11c71a358d0b574e1ef04b74..d8fbb69a369b495a198755cbf588db2b819fa482 100644 (file)
@@ -731,7 +731,7 @@ int usb_stor_CB_transport(ccb *srb, struct us_data *us)
        ccb reqsrb;
        int retry,notready;
 
-       psrb=&reqsrb;
+       psrb = &reqsrb;
        status=USB_STOR_TRANSPORT_GOOD;
        retry=0;
        notready=0;
@@ -776,7 +776,7 @@ do_retry:
        psrb->cmd[1]=srb->lun<<5;
        psrb->cmd[4]=18;
        psrb->datalen=18;
-       psrb->pdata=&srb->sense_buf[0];
+       psrb->pdata = &srb->sense_buf[0];
        psrb->cmdlen=12;
        /* issue the command */
        result=usb_stor_CB_comdat(psrb,us);
@@ -858,7 +858,7 @@ static int usb_request_sense(ccb *srb,struct us_data *ss)
        srb->cmd[1]=srb->lun<<5;
        srb->cmd[4]=18;
        srb->datalen=18;
-       srb->pdata=&srb->sense_buf[0];
+       srb->pdata = &srb->sense_buf[0];
        srb->cmdlen=12;
        ss->transport(srb,ss);
        USB_STOR_PRINTF("Request Sense returned %02X %02X %02X\n",srb->sense_buf[2],srb->sense_buf[12],srb->sense_buf[13]);
index 42fd7fb872f91c97f7823ecaf44f4423fda78e14..b21b13e4936e81c6b4721fba7ccc1eb9e2839e64 100644 (file)
@@ -126,9 +126,9 @@ long int spd_sdram(int(read_spd)(uint addr))
 
        int sdram0_pmit=0x07c00000;
 #ifndef CONFIG_405EP /* not on PPC405EP */
-       int sdram0_besr0=-1;
-       int sdram0_besr1=-1;
-       int sdram0_eccesr=-1;
+       int sdram0_besr0 = -1;
+       int sdram0_besr1 = -1;
+       int sdram0_eccesr = -1;
 #endif
        int sdram0_ecccfg;
 
index 87b63b742c491afaabeaec662280aebabfcf8b38..b880435f1ecf1d170cb226c195c6bbdbc45bcd22 100644 (file)
@@ -784,7 +784,7 @@ retry:
                pccb->msgout[0]=SCSI_IDENTIFY;
                transbytes=pccb->trans_bytes;
                tmpptr=pccb->pdata;
-               pccb->pdata=&pccb->sense_buf[0];
+               pccb->pdata = &pccb->sense_buf[0];
                datalen=pccb->datalen;
                pccb->datalen=14;
                tmpstat=pccb->status;
index 81d3e989341e97b44260fd102bbc55e5268a0b31..33e7c5f1248ef428a0763503761ab768a4f26c49 100644 (file)
@@ -64,7 +64,7 @@ static int kbd_read_data(void)
        int val;
        unsigned char status;
 
-       val=-1;
+       val = -1;
        status = kbd_read_status();
        if (status & KBD_STAT_OBF) {
                val = kbd_read_input();
index 7dc33be89959fcee932e317e1666fae823ff69b8..a7afa908a2d9b5f69d66518255e5e175ce6fe4c7 100644 (file)
@@ -59,8 +59,8 @@ fsl_pci_init(struct pci_controller *hose)
        pci_dev_t dev = PCI_BDF(busno,0,0);
 
        /* Initialize ATMU registers based on hose regions and flags */
-       volatile pot_t *po=&pci->pot[1];        /* skip 0 */
-       volatile pit_t *pi=&pci->pit[0];        /* ranges from: 3 to 1 */
+       volatile pot_t *po = &pci->pot[1];      /* skip 0 */
+       volatile pit_t *pi = &pci->pit[0];      /* ranges from: 3 to 1 */
 
 #ifdef DEBUG
        int neg_link_w;
index a976e0da610f6f67516498ac01d8e489c74bcfdb..0f6f62b9444c6b3fc1c07abff2d8f58d77e79185 100644 (file)
@@ -187,7 +187,7 @@ int flash_sect_erase (ulong addr_first, ulong addr_last)
 
        erased = 0;
 
-       for (bank=0,info=&flash_info[0]; bank < CFG_MAX_FLASH_BANKS; ++bank, ++info) {
+       for (bank=0,info = &flash_info[0]; bank < CFG_MAX_FLASH_BANKS; ++bank, ++info) {
                ulong b_end;
                int sect;
 
@@ -366,7 +366,7 @@ int flash_sect_protect (int p, ulong addr_first, ulong addr_last)
 
        protected = 0;
 
-       for (bank=0,info=&flash_info[0]; bank < CFG_MAX_FLASH_BANKS; ++bank, ++info) {
+       for (bank=0,info = &flash_info[0]; bank < CFG_MAX_FLASH_BANKS; ++bank, ++info) {
                ulong b_end;
                int sect;
 
index 1ed77b1b18107a36b2e3c43f2ebd7fd9f2ab0112..a73159ff9bf8df06415438461fde4bf582e8ba83 100644 (file)
@@ -93,7 +93,7 @@ addr2info (ulong addr)
        flash_info_t *info;
        int i;
 
-       for (i=0, info=&flash_info[0]; i<CFG_MAX_FLASH_BANKS; ++i, ++info) {
+       for (i=0, info = &flash_info[0]; i<CFG_MAX_FLASH_BANKS; ++i, ++info) {
                if (info->flash_id != FLASH_UNKNOWN &&
                    addr >= info->start[0] &&
                    /* WARNING - The '- 1' is needed if the flash