Skip to content

Commit

Permalink
net: ppp: lcp: drop dead code path checking nack_buf
Browse files Browse the repository at this point in the history
There is no possibility right now that 'nack == NULL' and 'nack_buf !=
NULL', so drop code path for that case.

Signed-off-by: Marcin Niestroj <m.niestroj@grinn-global.com>
  • Loading branch information
mniestroj authored and jaizpuruzin committed Nov 15, 2023
1 parent 4875ec0 commit 8000c9c
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions subsys/net/l2/ppp/lcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -199,10 +199,6 @@ static int lcp_config_info_req(struct ppp_fsm *fsm,
out_of_mem:
if (nack) {
net_buf_unref(nack);
} else {
if (nack_buf) {
net_buf_unref(nack_buf);
}
}

return -ENOMEM;
Expand Down

0 comments on commit 8000c9c

Please sign in to comment.