diff options
author | Tuncer Ayaz <[email protected]> | 2011-03-10 20:50:46 +0100 |
---|---|---|
committer | Tuncer Ayaz <[email protected]> | 2011-03-16 16:26:46 +0100 |
commit | 345454e7dcfd4bc38992870cf5aa5ab7efe0c475 (patch) | |
tree | e1fc3b52c07502471a2e3c7f89ee4540e00f6ed8 /erts/emulator/beam/io.c | |
parent | 91b2e57ea0e3ab794d4b57a12ef10205383525a5 (diff) | |
download | otp-345454e7dcfd4bc38992870cf5aa5ab7efe0c475.tar.gz otp-345454e7dcfd4bc38992870cf5aa5ab7efe0c475.tar.bz2 otp-345454e7dcfd4bc38992870cf5aa5ab7efe0c475.zip |
erts: Remove unused variables
Diffstat (limited to 'erts/emulator/beam/io.c')
-rw-r--r-- | erts/emulator/beam/io.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/erts/emulator/beam/io.c b/erts/emulator/beam/io.c index f21a96c754..2e884a350e 100644 --- a/erts/emulator/beam/io.c +++ b/erts/emulator/beam/io.c @@ -1226,7 +1226,6 @@ void init_io(void) { int i; ErlDrvEntry** dp; - ErlDrvEntry* drv; char maxports[21]; /* enough for any 64-bit integer */ size_t maxportssize = sizeof(maxports); Uint ports_bits = ERTS_PORTS_BITS; @@ -1309,10 +1308,8 @@ void init_io(void) init_driver(&fd_driver, &fd_driver_entry, NULL); init_driver(&vanilla_driver, &vanilla_driver_entry, NULL); init_driver(&spawn_driver, &spawn_driver_entry, NULL); - for (dp = driver_tab; *dp != NULL; dp++) { - drv = *dp; + for (dp = driver_tab; *dp != NULL; dp++) erts_add_driver_entry(*dp, NULL, 1); - } erts_smp_tsd_set(driver_list_lock_status_key, NULL); erts_smp_mtx_unlock(&erts_driver_list_lock); |