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; return;
} }
if (sdu.get() != NULL) { if (sdu.get() == nullptr) {
log->warning("NULL SDU pointer in write_sdu()\n");
return;
}
if (blocking) { if (blocking) {
// block on write to queue // block on write to queue
log->info_hex(sdu->msg, log->info_hex(
sdu->N_bytes, 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());
"%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)); tx_sdu_queue.write(std::move(sdu));
} else { } else {
// non-blocking write // 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()); 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) void rlc_am_lte::rlc_am_lte_tx::discard_sdu(uint32_t discard_sn)

Loading…
Cancel
Save