Minor changes

This commit is contained in:
XANTRONIX Development 2020-05-26 22:08:25 -04:00 committed by XANTRONIX Industrial
parent 67afb68917
commit 4d9c45ad94

View file

@ -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 {