File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -582,18 +582,17 @@ int smcd_nl_get_lgr(struct sk_buff *skb, struct netlink_callback *cb)
582
582
void smc_lgr_cleanup_early (struct smc_connection * conn )
583
583
{
584
584
struct smc_link_group * lgr = conn -> lgr ;
585
- struct list_head * lgr_list ;
586
585
spinlock_t * lgr_lock ;
587
586
588
587
if (!lgr )
589
588
return ;
590
589
591
590
smc_conn_free (conn );
592
- lgr_list = smc_lgr_list_head (lgr , & lgr_lock );
591
+ smc_lgr_list_head (lgr , & lgr_lock );
593
592
spin_lock_bh (lgr_lock );
594
593
/* do not use this link group for new connections */
595
- if (!list_empty (lgr_list ))
596
- list_del_init (lgr_list );
594
+ if (!list_empty (& lgr -> list ))
595
+ list_del_init (& lgr -> list );
597
596
spin_unlock_bh (lgr_lock );
598
597
__smc_lgr_terminate (lgr , true);
599
598
}
You can’t perform that action at this time.
0 commit comments