summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/82559_eeprom.c3
-rw-r--r--examples/eepro100_eeprom.c3
-rw-r--r--examples/sched.c16
3 files changed, 0 insertions, 22 deletions
diff --git a/examples/82559_eeprom.c b/examples/82559_eeprom.c
index 1a121d4287..04efcf64cd 100644
--- a/examples/82559_eeprom.c
+++ b/examples/82559_eeprom.c
@@ -111,9 +111,6 @@ static int do_eeprom_cmd(long ioaddr, int cmd, int cmd_len)
eeprom_delay(ee_addr);
retval = (retval << 1) | ((inw(ee_addr) & EE_DATA_READ) ? 1 : 0);
} while (--cmd_len >= 0);
-#if 0
- outw(EE_ENB, ee_addr);
-#endif
/* Terminate the EEPROM access. */
outw(EE_ENB & ~EE_CS, ee_addr);
if (debug > 1)
diff --git a/examples/eepro100_eeprom.c b/examples/eepro100_eeprom.c
index a52e68d4e7..a217651ee8 100644
--- a/examples/eepro100_eeprom.c
+++ b/examples/eepro100_eeprom.c
@@ -139,9 +139,6 @@ static int do_eeprom_cmd(long ioaddr, int cmd, int cmd_len)
eeprom_delay(ee_addr);
retval = (retval << 1) | ((inw(ee_addr) & EE_DATA_READ) ? 1 : 0);
} while (--cmd_len >= 0);
-#if 0
- outw(EE_ENB, ee_addr);
-#endif
/* Terminate the EEPROM access. */
outw(EE_ENB & ~EE_CS, ee_addr);
if (debug > 1)
diff --git a/examples/sched.c b/examples/sched.c
index ae01e0b05d..0a577729d1 100644
--- a/examples/sched.c
+++ b/examples/sched.c
@@ -90,9 +90,6 @@ static void thread_yield (void);
static int thread_delete (int id);
static int thread_join (int *ret);
-#if 0 /* not used yet */
-static int thread_stop (int id);
-#endif /* not used yet */
/* An example of schedular test */
@@ -301,19 +298,6 @@ static int thread_start (int id)
return RC_SUCCESS;
}
-#if 0 /* not used so far */
-static int thread_stop (int id)
-{
- if (id <= MASTER_THREAD || id >= MAX_THREADS)
- return RC_FAILURE;
-
- if (current_tid == id)
- return RC_FAILURE;
-
- lthreads[id].state = STATE_STOPPED;
- return RC_SUCCESS;
-}
-#endif /* not used so far */
static int thread_join (int *ret)
{