forked from Imagelibrary/rtems
Fix C files which had two semi-colons at EOL
This commit is contained in:
@@ -121,7 +121,7 @@ bool _FCSR_readSectors (u32 sector, u32 numSectors, void* buffer)
|
||||
int i;
|
||||
bool flagSramSector = false;
|
||||
int readLength = numSectors * BYTES_PER_READ;
|
||||
u8* src;;
|
||||
u8* src;
|
||||
u8* dst;
|
||||
|
||||
// Find which region this read is in
|
||||
|
||||
@@ -44,7 +44,7 @@ void cardWriteCommand(const uint8 * command) {
|
||||
//---------------------------------------------------------------------------------
|
||||
void cardPolledTransfer(uint32 flags, uint32 * destination, uint32 length, const uint8 * command) {
|
||||
//---------------------------------------------------------------------------------
|
||||
u32 data;;
|
||||
u32 data;
|
||||
cardWriteCommand(command);
|
||||
CARD_CR2 = flags;
|
||||
uint32 * target = destination + length;
|
||||
@@ -68,7 +68,7 @@ void cardStartTransfer(const uint8 * command, uint32 * destination, int channel,
|
||||
// Set up a DMA channel to transfer a word every time the card makes one
|
||||
DMA_SRC(channel) = (uint32)&CARD_DATA_RD;
|
||||
DMA_DEST(channel) = (uint32)destination;
|
||||
DMA_CR(channel) = DMA_ENABLE | DMA_START_CARD | DMA_32_BIT | DMA_REPEAT | DMA_SRC_FIX | 0x0001;;
|
||||
DMA_CR(channel) = DMA_ENABLE | DMA_START_CARD | DMA_32_BIT | DMA_REPEAT | DMA_SRC_FIX | 0x0001;
|
||||
|
||||
CARD_CR2 = flags;
|
||||
}
|
||||
|
||||
@@ -140,7 +140,7 @@ void Init_PLL (void)
|
||||
*((uint32_t*)SIC_IWR) = 0x1;
|
||||
|
||||
/* Configure PLL registers */
|
||||
*((uint16_t*)PLL_DIV) = ssel;;
|
||||
*((uint16_t*)PLL_DIV) = ssel;
|
||||
msel = msel<<9;
|
||||
*((uint16_t*)PLL_CTL) = msel;
|
||||
|
||||
|
||||
@@ -442,7 +442,7 @@ fec_rxDaemon (void *arg)
|
||||
* FIXME: Packet filtering hook could be done here.
|
||||
*/
|
||||
struct ether_header *eh;
|
||||
int len = rxBd->length - sizeof(uint32_t);;
|
||||
int len = rxBd->length - sizeof(uint32_t);
|
||||
|
||||
/*
|
||||
* Invalidate the cache and push the packet up.
|
||||
|
||||
@@ -423,7 +423,7 @@ fec_rxDaemon (void *arg)
|
||||
* FIXME: Packet filtering hook could be done here.
|
||||
*/
|
||||
struct ether_header *eh;
|
||||
int len = rxBd->length - sizeof(uint32_t);;
|
||||
int len = rxBd->length - sizeof(uint32_t);
|
||||
|
||||
/*
|
||||
* Invalidate the cache and push the packet up.
|
||||
|
||||
@@ -415,7 +415,7 @@ static void fec_rxDaemon(void *arg)
|
||||
* FIXME: Packet filtering hook could be done here.
|
||||
*/
|
||||
struct ether_header *eh;
|
||||
int len = rxBd->length - sizeof(uint32_t);;
|
||||
int len = rxBd->length - sizeof(uint32_t);
|
||||
|
||||
m = sc->rxMbuf[rxBdIndex];
|
||||
|
||||
|
||||
@@ -479,7 +479,7 @@ fec_rxDaemon (void *arg)
|
||||
* FIXME: Packet filtering hook could be done here.
|
||||
*/
|
||||
struct ether_header *eh;
|
||||
int len = rxBd->length - sizeof(uint32_t);;
|
||||
int len = rxBd->length - sizeof(uint32_t);
|
||||
|
||||
m = sc->rxMbuf[rxBdIndex];
|
||||
#ifdef RTEMS_MCF5282_BSP_ENABLE_DATA_CACHE
|
||||
|
||||
@@ -143,7 +143,7 @@ unsigned char hwp = 0, swp;
|
||||
if ( enbl ) {
|
||||
*p |= swp;
|
||||
} else {
|
||||
*p &= ~swp;;
|
||||
*p &= ~swp;
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
|
||||
@@ -179,7 +179,7 @@ volatile union bconv *p;
|
||||
uint32_t rval;
|
||||
|
||||
if ( 1 == b->width )
|
||||
off <<= 1;;
|
||||
off <<= 1;
|
||||
|
||||
a = ADDR32(b, a, off);
|
||||
|
||||
|
||||
@@ -233,7 +233,7 @@ loop_exit:
|
||||
tmp = ELCRS_INT9_LVL | ELCRS_INT10_LVL | ELCRS_INT11_LVL;
|
||||
outb(tmp, ISA8259_S_ELCR);
|
||||
tmp = ELCRM_INT5_LVL;
|
||||
outb(tmp, ISA8259_M_ELCR);;
|
||||
outb(tmp, ISA8259_M_ELCR);
|
||||
/*
|
||||
* Set the Interrupt inputs to non-inverting level interrupt
|
||||
*/
|
||||
|
||||
@@ -1458,7 +1458,7 @@ vmeUniverseDmaStartXX(volatile LERegister *base, int channel, uint32_t pci_addr,
|
||||
|
||||
{
|
||||
/* help the compiler allocate registers */
|
||||
register volatile LERegister *b=base;;
|
||||
register volatile LERegister *b=base;
|
||||
register unsigned long dgcsoff=UNIV_REGOFF_DGCS,dgcs;
|
||||
|
||||
dgcs=READ_LE(b, dgcsoff);
|
||||
|
||||
@@ -531,7 +531,7 @@ void uart_exit(void)
|
||||
*/
|
||||
rtems_device_driver bfin_uart_open(rtems_device_major_number major,
|
||||
rtems_device_minor_number minor, void *arg) {
|
||||
rtems_status_code sc = RTEMS_NOT_DEFINED;;
|
||||
rtems_status_code sc = RTEMS_NOT_DEFINED;
|
||||
rtems_libio_open_close_args_t *args = NULL;
|
||||
|
||||
/**
|
||||
|
||||
@@ -248,7 +248,7 @@ spiPollRead (int minor)
|
||||
{
|
||||
|
||||
/* Wait for character */
|
||||
while ((port->LSR & LSR_RSR)==0);;
|
||||
while ((port->LSR & LSR_RSR)==0);
|
||||
|
||||
return port->RBR;
|
||||
}
|
||||
@@ -259,7 +259,7 @@ spiPollWrite(int minor, const char *buf, size_t len)
|
||||
{
|
||||
|
||||
while (len-- > 0) {
|
||||
while (!(port->LSR & LSR_THE));;
|
||||
while (!(port->LSR & LSR_THE));
|
||||
port->THR = *buf++;
|
||||
}
|
||||
return 0;
|
||||
|
||||
@@ -212,7 +212,7 @@ tty0PollRead (int minor)
|
||||
{
|
||||
|
||||
/* Wait for character */
|
||||
while ((tty0port->LSR & LSR_RSR)==0);;
|
||||
while ((tty0port->LSR & LSR_RSR)==0);
|
||||
|
||||
return tty0port->RBR;
|
||||
}
|
||||
@@ -223,7 +223,7 @@ tty0PollWrite(int minor, const char *buf, size_t len)
|
||||
{
|
||||
|
||||
while (len-- > 0) {
|
||||
while (!(tty0port->LSR & LSR_THE));;
|
||||
while (!(tty0port->LSR & LSR_THE));
|
||||
tty0port->THR = *buf++;
|
||||
}
|
||||
return 0;
|
||||
|
||||
@@ -2701,7 +2701,7 @@ rtems_bdbuf_swapout_task (rtems_task_argument arg)
|
||||
{
|
||||
rtems_bdbuf_swapout_transfer transfer;
|
||||
uint32_t period_in_ticks;
|
||||
const uint32_t period_in_msecs = bdbuf_config.swapout_period;;
|
||||
const uint32_t period_in_msecs = bdbuf_config.swapout_period;
|
||||
uint32_t timer_delta;
|
||||
|
||||
transfer.write_req = rtems_bdbuf_swapout_writereq_alloc ();
|
||||
|
||||
@@ -800,7 +800,7 @@ msdos_set_first_char4file_name(
|
||||
{
|
||||
uint32_t sec = (fat_cluster_num_to_sector_num(mt_entry, start.cln) +
|
||||
(start.ofs >> fs_info->fat.vol.sec_log2));
|
||||
uint32_t byte = (start.ofs & (fs_info->fat.vol.bps - 1));;
|
||||
uint32_t byte = (start.ofs & (fs_info->fat.vol.bps - 1));
|
||||
|
||||
ret = _fat_block_write(mt_entry, sec, byte + MSDOS_FILE_NAME_OFFSET, 1,
|
||||
&fchar);
|
||||
|
||||
@@ -450,7 +450,7 @@ rtems_libi2c_register_bus (const char *name, rtems_libi2c_bus_t * bus)
|
||||
/* initialization failed */
|
||||
i = -err;
|
||||
} else {
|
||||
busses[i].name = nmcpy;;
|
||||
busses[i].name = nmcpy;
|
||||
nmcpy = 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -1047,7 +1047,7 @@ rtems_capture_open (uint32_t size, rtems_capture_timestamp timestamp __attribu
|
||||
}
|
||||
else
|
||||
{
|
||||
capture_extension_index = rtems_object_id_get_index (capture_id);;
|
||||
capture_extension_index = rtems_object_id_get_index (capture_id);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@@ -85,7 +85,7 @@ uint32_t _CORE_message_queue_Flush_support(
|
||||
|
||||
_ISR_Disable( level );
|
||||
inactive_head = _Chain_Head( &the_message_queue->Inactive_messages );
|
||||
inactive_first = inactive_head->next;;
|
||||
inactive_first = inactive_head->next;
|
||||
message_queue_first = _Chain_First( &the_message_queue->Pending_messages );
|
||||
message_queue_last = _Chain_Last( &the_message_queue->Pending_messages );
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@ static Heap_Resize_status _Heap_Resize_block_checked(
|
||||
|
||||
Heap_Block *next_block = _Heap_Block_at( block, block_size );
|
||||
uintptr_t next_block_size = _Heap_Block_size( next_block );
|
||||
bool next_block_is_free = _Heap_Is_free( next_block );;
|
||||
bool next_block_is_free = _Heap_Is_free( next_block );
|
||||
|
||||
_HAssert( _Heap_Is_block_in_heap( heap, next_block ) );
|
||||
_HAssert( _Heap_Is_prev_used( next_block ) );
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
*/
|
||||
struct taskSwitchLog taskSwitchLog[25];
|
||||
int taskSwitchLogIndex;
|
||||
volatile int testsFinished;;
|
||||
volatile int testsFinished;
|
||||
|
||||
void Task_switch(
|
||||
rtems_tcb *unused,
|
||||
|
||||
@@ -227,7 +227,7 @@ static int flashdisk_blank(
|
||||
{
|
||||
int eno = 0;
|
||||
const uint8_t *current = get_data_pointer(sd, segment, offset);
|
||||
const uint8_t *end = current + size;;
|
||||
const uint8_t *end = current + size;
|
||||
|
||||
while (eno == 0 && current != end) {
|
||||
if (*current != 0xff) {
|
||||
|
||||
@@ -189,11 +189,11 @@ rtems_device_driver termios_test_driver_initialize(
|
||||
|
||||
status = rtems_timer_create(rtems_build_name('T', 'M', 'R', 'X'), &Rx_Timer);
|
||||
if ( status )
|
||||
rtems_fatal_error_occurred(1);;
|
||||
rtems_fatal_error_occurred(1);
|
||||
|
||||
status = rtems_timer_create(rtems_build_name('T', 'M', 'T', 'X'), &Tx_Timer);
|
||||
if ( status )
|
||||
rtems_fatal_error_occurred(1);;
|
||||
rtems_fatal_error_occurred(1);
|
||||
|
||||
return RTEMS_SUCCESSFUL;
|
||||
}
|
||||
|
||||
@@ -48,8 +48,7 @@ void verify_timed_receive(void);
|
||||
void wait_for_signal(sigset_t *waitset, int sec, int expect_signal);
|
||||
void verify_notify(void);
|
||||
void verify_with_threads(void);
|
||||
void verify_timedout_mq_timedreceive(
|
||||
char *task_name, int que, int is_blocking);;
|
||||
void verify_timedout_mq_timedreceive(char *task_name, int que, int is_blocking);
|
||||
void verify_timedout_mq_timedsend(int que, int is_blocking);
|
||||
void verify_timed_receive(void);
|
||||
void validate_mq_setattr(void);
|
||||
|
||||
@@ -1471,7 +1471,7 @@ or 1/3 and 3/9 and 9/27 may disagree");
|
||||
if ((CInvrse * Q) != ((CInvrse * Y) * S)) {
|
||||
UfThold = Y;
|
||||
BadCond (Failure, "Either accuracy deteriorates as numbers\n");
|
||||
printf ("approach a threshold = %.17e\n", UfThold);;
|
||||
printf ("approach a threshold = %.17e\n", UfThold);
|
||||
printf (" coming down from %.17e\n", C);
|
||||
printf (" or else multiplication gets too many last digits wrong.\n");
|
||||
}
|
||||
@@ -1526,7 +1526,7 @@ or 1/3 and 3/9 and 9/27 may disagree");
|
||||
printf ("yet X - Z yields %.17e .\n", Z9);
|
||||
printf (" Should this NOT signal Underflow, ");
|
||||
printf ("this is a SERIOUS DEFECT\nthat causes ");
|
||||
printf ("confusion when innocent statements like\n");;
|
||||
printf ("confusion when innocent statements like\n");
|
||||
printf (" if (X == Z) ... else");
|
||||
printf (" ... (f(X) - f(Z)) / (X - Z) ...\n");
|
||||
printf ("encounter Division by Zero although actually\n");
|
||||
|
||||
Reference in New Issue
Block a user