aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2011-03-01 16:47:09 +0100
committerSverker Eriksson <[email protected]>2011-03-01 17:01:22 +0100
commit435a89b9d156f3f6d88416dedb8e75b0489eba80 (patch)
treed8a7c01380bc08827c8895b6dbe679ca304c7147 /lib/kernel
parent98d3b0c86ff3d99a4d175291df54c5ed48357fce (diff)
downloadotp-435a89b9d156f3f6d88416dedb8e75b0489eba80.tar.gz
otp-435a89b9d156f3f6d88416dedb8e75b0489eba80.tar.bz2
otp-435a89b9d156f3f6d88416dedb8e75b0489eba80.zip
Fix three dialyzer warnings in kernel
Joint effort by Kostis, pan, egil & sverker
Diffstat (limited to 'lib/kernel')
-rw-r--r--lib/kernel/src/net_kernel.erl31
1 files changed, 13 insertions, 18 deletions
diff --git a/lib/kernel/src/net_kernel.erl b/lib/kernel/src/net_kernel.erl
index f5e2820bbe..23db85e1f4 100644
--- a/lib/kernel/src/net_kernel.erl
+++ b/lib/kernel/src/net_kernel.erl
@@ -322,24 +322,19 @@ init({Name, LongOrShortNames, TickT}) ->
process_flag(priority, max),
Ticktime = to_integer(TickT),
Ticker = spawn_link(net_kernel, ticker, [self(), Ticktime]),
- case auth:get_cookie(Node) of
- Cookie when is_atom(Cookie) ->
- {ok, #state{name = Name,
- node = Node,
- type = LongOrShortNames,
- tick = #tick{ticker = Ticker, time = Ticktime},
- connecttime = connecttime(),
- connections =
- ets:new(sys_dist,[named_table,
- protected,
- {keypos, 2}]),
- listen = Listeners,
- allowed = [],
- verbose = 0
- }};
- _ELSE ->
- {stop, {error,{bad_cookie, Node}}}
- end;
+ {ok, #state{name = Name,
+ node = Node,
+ type = LongOrShortNames,
+ tick = #tick{ticker = Ticker, time = Ticktime},
+ connecttime = connecttime(),
+ connections =
+ ets:new(sys_dist,[named_table,
+ protected,
+ {keypos, 2}]),
+ listen = Listeners,
+ allowed = [],
+ verbose = 0
+ }};
Error ->
{stop, Error}
end.