mgmt/osdp: Remove unused variable from osdp_phy_packet_finalize()

The variable was removed to avoid generating compilation warrning.


Signed-off-by: Arkadiusz Wadowski <wadowski.arkadiusz@gmail.com>
This commit is contained in:
Arkadiusz Wadowski 2023-12-07 09:41:16 +01:00 committed by Fabio Baltieri
parent a9b0230360
commit 3fc40c9779

View file

@ -191,7 +191,7 @@ int osdp_phy_packet_finalize(struct osdp_pd *pd, uint8_t *buf,
#ifdef CONFIG_OSDP_SC_ENABLED
uint8_t *data;
int i, data_len;
int data_len;
if (sc_is_active(pd) && (pkt->control & PKT_CONTROL_SCB) && pkt->data[1] >= SCS_15) {
if (pkt->data[1] == SCS_17 || pkt->data[1] == SCS_18) {