Home
last modified time | relevance | path

Searched hist:"0 f05b6cb818db0c55f3410852089470809d1e4f3" (Results 1 – 1 of 1) sorted by relevance

/openbmc/libmctp/
H A Dastlpc.cdiff 0f05b6cb818db0c55f3410852089470809d1e4f3 Mon Nov 14 19:07:50 CST 2022 Andrew Jeffery <andrew@aj.id.au> astlpc: Refactor redundant assertion and associated logic

The type of the pkt_size member was changed from int to size_t and
therefore the assertion always holds. The assertion was protecting the
subsequent cast to uint32_t, so the assertion is deleted and the cast
replaced by ensuring body is of the right type for the comparison.

Fixes: #10
Fixes: e889b19f4b34 ("core: Make pkt_size and pkt_pad size_t")
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Change-Id: I6600bb242b66fd8510a150e1a508a7f572beb8d0