From 7dc93e6ed372c37d45be2db156e8a8a6b88fd4ec Mon Sep 17 00:00:00 2001 From: Anders Svensson Date: Mon, 17 Apr 2017 18:18:21 +0200 Subject: Don't match for no useful reason --- lib/diameter/src/base/diameter_codec.erl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/diameter/src/base/diameter_codec.erl b/lib/diameter/src/base/diameter_codec.erl index 54f5fd2e25..8efc0801af 100644 --- a/lib/diameter/src/base/diameter_codec.erl +++ b/lib/diameter/src/base/diameter_codec.erl @@ -737,9 +737,8 @@ pack_avp(Code, Flags, VendorId, Data) -> %% %% Prepend the vendor id as required. -pack_avp(Code, Flags, Sz, Vid, Data, Pad) +pack_avp(Code, Flags, Sz, _Vid, Data, Pad) when 0 == Flags band 2#10000000 -> - undefined = Vid, %% sanity check pack_avp(Code, Flags, Sz, 0, 0, Data, Pad); pack_avp(Code, Flags, Sz, Vid, Data, Pad) -> -- cgit v1.2.3