libcamera: ipa_data_serializer: Remove some vector reserve() calls
`appendPOD()` does a single insertion, so if only a single `appendPOD()` will be called on a vector before returning, then calling `reserve()` is not that useful, so remove it. Signed-off-by: Barnabás Pőcze <barnabas.pocze@ideasonboard.com> Reviewed-by: Paul Elder <paul.elder@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
This commit is contained in:
@@ -196,7 +196,6 @@ IPADataSerializer<type>::serialize(const type &data, \
|
||||
[[maybe_unused]] ControlSerializer *cs) \
|
||||
{ \
|
||||
std::vector<uint8_t> dataVec; \
|
||||
dataVec.reserve(sizeof(type)); \
|
||||
appendPOD<type>(dataVec, data); \
|
||||
\
|
||||
return { dataVec, {} }; \
|
||||
|
||||
Reference in New Issue
Block a user