Skip to content

Commit

Permalink
wierl_monitor: fix dialyzer warning
Browse files Browse the repository at this point in the history
  • Loading branch information
msantos committed Nov 16, 2016
1 parent 90c01f8 commit dd4ea20
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/wierl_monitor.erl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
%% Copyright (c) 2011-2015, Michael Santos <michael.santos@gmail.com>
%% Copyright (c) 2011-2016, Michael Santos <michael.santos@gmail.com>
%% All rights reserved.
%%
%% Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -233,10 +233,7 @@ wireless_mode(Ifname, Mode) ->

dlt(802) -> wierl_prism;
dlt(803) -> wierl_radiotap;
dlt(N) when is_integer(N) -> {unsupported, N};

dlt(wierl_prism) -> 802;
dlt(wierl_radiotap) -> 803.
dlt(N) when is_integer(N) -> {unsupported, N}.

% Get the datalink type of the interface by reading 0 bytes
% from the socket. The interface may not be ready, so spin
Expand Down

0 comments on commit dd4ea20

Please sign in to comment.