serial: Initialize pkt_trailer for the binding
Currently the pkt_trailer for the binding is not initialized
explicitly. Fix typo to correct the issue.
Change-Id: I2d3af589886fabd17aa8f7c432bf92cd923e0640
Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com>
diff --git a/serial.c b/serial.c
index 22517a7..d08dbac 100644
--- a/serial.c
+++ b/serial.c
@@ -369,7 +369,7 @@
serial->binding.version = 1;
serial->binding.pkt_size = MCTP_PACKET_SIZE(MCTP_BTU);
serial->binding.pkt_header = 0;
- serial->binding.pkt_header = 0;
+ serial->binding.pkt_trailer = 0;
serial->binding.start = mctp_serial_core_start;
serial->binding.tx = mctp_binding_serial_tx;