aboutsummaryrefslogtreecommitdiffstats
path: root/lib/sasl/src/si_sasl_supp.erl
diff options
context:
space:
mode:
authorSiri Hansen <[email protected]>2013-04-26 14:21:12 +0200
committerHans Bolinder <[email protected]>2013-05-06 12:14:14 +0200
commit19d41eefa1cf4856587930d99959bbed73a818b5 (patch)
tree51cbb92f4e3e6ae31d678c26e4f49056f144af2e /lib/sasl/src/si_sasl_supp.erl
parentf52452309cf68da898a1768eb6e8b6767e602bc7 (diff)
downloadotp-19d41eefa1cf4856587930d99959bbed73a818b5.tar.gz
otp-19d41eefa1cf4856587930d99959bbed73a818b5.tar.bz2
otp-19d41eefa1cf4856587930d99959bbed73a818b5.zip
Fix unmatched_return warnings in sasl
Diffstat (limited to 'lib/sasl/src/si_sasl_supp.erl')
-rw-r--r--lib/sasl/src/si_sasl_supp.erl8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/sasl/src/si_sasl_supp.erl b/lib/sasl/src/si_sasl_supp.erl
index c4fc0c5f08..12b2557cd6 100644
--- a/lib/sasl/src/si_sasl_supp.erl
+++ b/lib/sasl/src/si_sasl_supp.erl
@@ -162,7 +162,7 @@ handle_call(stop, _From, State) ->
{stop, normal, stopped, State}.
terminate(_Reason, _State) ->
- close_device(get(device)),
+ _ = close_device(get(device)),
ok.
handle_cast(_Msg, State) ->
@@ -190,7 +190,7 @@ open_log_file(undefined, NewFile) ->
open_log_file(standard_io, NewFile) ->
open_log_file(NewFile);
open_log_file(OldFile, NewFile) ->
- file:close(OldFile),
+ _ = file:close(OldFile),
open_log_file(NewFile).
open_log_file(standard_io) -> standard_io;
@@ -317,7 +317,7 @@ pi_impl(Opt, XPid) ->
{status_info, Pid, {module, Module}, Data} ->
do_best_printout(Opt, Pid, Module, Data);
{error, Reason} ->
- ppi_impl(Pid),
+ _ = ppi_impl(Pid),
{error, {"can not get status info from process:",
XPid,
Reason}}
@@ -335,7 +335,7 @@ do_best_printout(Opt, Pid, Mod, Data) when is_pid(Pid) ->
case print_info(get(device), Pid, {Mod, format_status}, Opt, Data) of
ok -> ok;
{error, Reason} ->
- ppi_impl(Pid),
+ _ = ppi_impl(Pid),
{error, Reason}
end.