diff options
author | Thomas Haller <thaller@redhat.com> | 2024-09-12 07:31:14 (GMT) |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2024-09-12 07:31:14 (GMT) |
commit | 11597b739c6ef9a7257d02d689286279197ef345 (patch) | |
tree | 9e8784ca9ad1c2ae40c24519e2133c22a46fd751 /lib | |
parent | d48da13239f589e7de5b940055eebd534dab337e (diff) | |
download | libnl-11597b739c6ef9a7257d02d689286279197ef345.zip libnl-11597b739c6ef9a7257d02d689286279197ef345.tar.gz libnl-11597b739c6ef9a7257d02d689286279197ef345.tar.bz2 |
xfrm: remove redundant check in xfrm_sa_update_cache()
Diffstat (limited to 'lib')
-rw-r--r-- | lib/xfrm/sa.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/xfrm/sa.c b/lib/xfrm/sa.c index b48c54f..a9256d9 100644 --- a/lib/xfrm/sa.c +++ b/lib/xfrm/sa.c @@ -1050,7 +1050,7 @@ static int xfrm_sa_update_cache (struct nl_cache *cache, struct nl_object *obj, else if (change_cb) change_cb(cache, obj, NL_ACT_NEW, data); } - else if (old_sa) + else { uint64_t diff = 0; if (change_cb || change_cb_v2) |