There are functions that differ by only a metric version number. These duplicated (or triplicated or more) functions could be a single function. The metric version would have to get passed as an argument more than it currently is.
A good example is lmt_mdt_decode_v2_mdtinfo and lmt_mdt_decode_v3_mdtinfo.
There are functions that differ by only a metric version number. These duplicated (or triplicated or more) functions could be a single function. The metric version would have to get passed as an argument more than it currently is.
A good example is
lmt_mdt_decode_v2_mdtinfo
andlmt_mdt_decode_v3_mdtinfo
.