aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/io.c
diff options
context:
space:
mode:
authorRickard Green <[email protected]>2011-05-10 20:59:36 +0200
committerRickard Green <[email protected]>2011-05-13 14:23:27 +0200
commit3da283a85f73132e73ab911154c2c0ff8797d61d (patch)
tree5830b4b55d18e5b3fd7b604d8d8b6f098d0c7a0b /erts/emulator/beam/io.c
parent425e282be62f8205b1ba262b112f38688b421c49 (diff)
downloadotp-3da283a85f73132e73ab911154c2c0ff8797d61d.tar.gz
otp-3da283a85f73132e73ab911154c2c0ff8797d61d.tar.bz2
otp-3da283a85f73132e73ab911154c2c0ff8797d61d.zip
Remove pointless erts_ports_alive variable
Diffstat (limited to 'erts/emulator/beam/io.c')
-rw-r--r--erts/emulator/beam/io.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/erts/emulator/beam/io.c b/erts/emulator/beam/io.c
index f619c6f88b..86f550310c 100644
--- a/erts/emulator/beam/io.c
+++ b/erts/emulator/beam/io.c
@@ -56,7 +56,6 @@ static erts_smp_tsd_key_t driver_list_last_error_key; /* Save last DDLL error o
per thread basis (for BC interfaces) */
Port* erts_port; /* The port table */
-erts_smp_atomic_t erts_ports_alive;
erts_smp_atomic_t erts_bytes_out; /* No bytes sent out of the system */
erts_smp_atomic_t erts_bytes_in; /* No bytes gotten into the system */
@@ -421,7 +420,6 @@ setup_port(Port* prt, Eterm pid, erts_driver_t *driver,
new_name = (char*) erts_alloc(ERTS_ALC_T_PORT_NAME, sys_strlen(name)+1);
sys_strcpy(new_name, name);
erts_smp_runq_lock(runq);
- erts_smp_atomic_inc(&erts_ports_alive);
erts_smp_port_state_lock(prt);
prt->status = ERTS_PORT_SFLG_CONNECTED | xstatus;
prt->snapshot = (Uint32) erts_smp_atomic_read(&erts_ports_snapshot);
@@ -1274,7 +1272,6 @@ void init_io(void)
erts_smp_atomic_init(&erts_bytes_out, 0);
erts_smp_atomic_init(&erts_bytes_in, 0);
- erts_smp_atomic_init(&erts_ports_alive, 0);
for (i = 0; i < erts_max_ports; i++) {
erts_port_task_init_sched(&erts_port[i].sched);