Commit dc0f3894 authored by Herbert Xu's avatar Herbert Xu Committed by David S. Miller

[IPSEC]: Kill redundant dst_release check in xfrm_dst_destroy

Here's a trivial patch to get rid of a redundant check that I added
in patch 3/4.  dst_release already checks for dst == NULL.
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e6c7571e
...@@ -1028,7 +1028,6 @@ static void xfrm_dst_destroy(struct dst_entry *dst) ...@@ -1028,7 +1028,6 @@ static void xfrm_dst_destroy(struct dst_entry *dst)
{ {
struct xfrm_dst *xdst = (struct xfrm_dst *)dst; struct xfrm_dst *xdst = (struct xfrm_dst *)dst;
if (xdst->route)
dst_release(xdst->route); dst_release(xdst->route);
if (!dst->xfrm) if (!dst->xfrm)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment