From 4d9c45ad94ac7178e4180f77083f25f61026e232 Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Tue, 26 May 2020 22:08:25 -0400 Subject: [PATCH] Minor changes --- src/frame.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/frame.c b/src/frame.c index 3deb05a..ef8d03f 100644 --- a/src/frame.c +++ b/src/frame.c @@ -27,9 +27,7 @@ static ssize_t decode_station(patty_ax25_address *address, /* * Take note if we have reached the end of the call sign. */ - if (space == 0) { - space = 1; - } + space = 1; address->callsign[i] = '\0'; } else { @@ -117,10 +115,6 @@ static ssize_t decode_address(patty_ax25_frame *frame, offset += decoded; } - /* - * It would be considered erroneous if the destination address did have the - * extension bit set to 1. - */ if ((decoded = decode_station(&frame->src, data, offset)) < 0) { goto error; } else {