sccp codec: ensure correct encoding of 'undefined' point code
diff --git a/src/sccp_codec.erl b/src/sccp_codec.erl
index eb07fb6..2ec50cf 100644
--- a/src/sccp_codec.erl
+++ b/src/sccp_codec.erl
@@ -274,13 +274,10 @@
 			{GTind, <<TransType:8, NumPlan:4, Enc:4, 0:1, Nature:7, PhoneBin/binary>>}
 	end.
 
+encode_pc(undefined) ->
+	{0, <<>>};
 encode_pc(PointCode) when is_integer(PointCode) ->
-	case PointCode of
-		undefined ->
-			{0, <<>>};
-		_ ->
-			{1, <<PointCode:16/little>>}
-	end;
+	{1, <<PointCode:16/little>>};
 encode_pc(PcRec) ->
 	PcInt = osmo_util:pointcode2int(PcRec),
 	encode_pc(PcInt).