platform/tests: add assertions to nmtstp_link_bridge_normalize_jiffies_time()

This is supposed to workaround a coverity warning.
This commit is contained in:
Thomas Haller 2021-07-06 09:04:37 +02:00
parent 951ba8f9fd
commit c6be3404f8
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -1427,6 +1427,10 @@ nmtstp_link_bridge_normalize_jiffies_time(const NMPlatformLnkBridge *requested,
const NMPlatformLnkBridge *kernel,
NMPlatformLnkBridge * dst)
{
g_assert(requested);
g_assert(dst);
g_assert(kernel);
if (dst != requested)
*dst = *requested;