Removed unecessery indentation in RLC AM write SDU.

master
Pedro Alvarez 5 years ago committed by Andre Puschmann
parent a77dd4e959
commit ca7c865ce8

@ -330,15 +330,15 @@ void rlc_am_lte::rlc_am_lte_tx::write_sdu(unique_byte_buffer_t sdu, bool blockin
return;
}
if (sdu.get() != NULL) {
if (sdu.get() == nullptr) {
log->warning("NULL SDU pointer in write_sdu()\n");
return;
}
if (blocking) {
// block on write to queue
log->info_hex(sdu->msg,
sdu->N_bytes,
"%s Tx SDU (%d B, tx_sdu_queue_len=%d)\n",
RB_NAME,
sdu->N_bytes,
tx_sdu_queue.size());
log->info_hex(
sdu->msg, sdu->N_bytes, "%s Tx SDU (%d B, tx_sdu_queue_len=%d)\n", RB_NAME, sdu->N_bytes, tx_sdu_queue.size());
tx_sdu_queue.write(std::move(sdu));
} else {
// non-blocking write
@ -358,9 +358,6 @@ void rlc_am_lte::rlc_am_lte_tx::write_sdu(unique_byte_buffer_t sdu, bool blockin
tx_sdu_queue.size());
}
}
} else {
log->warning("NULL SDU pointer in write_sdu()\n");
}
}
void rlc_am_lte::rlc_am_lte_tx::discard_sdu(uint32_t discard_sn)

Loading…
Cancel
Save