Skip to content

Commit 06b6939

Browse files
jjuhlhorms
authored andcommitted
IPVS: Fix variable assignment in ip_vs_notrack
There's no sense to 'ct = ct = ' in ip_vs_notrack(). Just assign nf_ct_get()'s return value directly to the pointer variable 'ct' once. Signed-off-by: Jesper Juhl <jj@chaosbits.net> Signed-off-by: Simon Horman <horms@verge.net.au>
1 parent 6060c74 commit 06b6939

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎include/net/ip_vs.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1190,7 +1190,7 @@ static inline void ip_vs_notrack(struct sk_buff *skb)
11901190
{
11911191
#if defined(CONFIG_NF_CONNTRACK) || defined(CONFIG_NF_CONNTRACK_MODULE)
11921192
enum ip_conntrack_info ctinfo;
1193-
struct nf_conn *ct = ct = nf_ct_get(skb, &ctinfo);
1193+
struct nf_conn *ct = nf_ct_get(skb, &ctinfo);
11941194

11951195
if (!ct || !nf_ct_is_untracked(ct)) {
11961196
nf_reset(skb);

0 commit comments

Comments
 (0)