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 @@ -625,18 +625,17 @@ int smcd_nl_get_lgr(struct sk_buff *skb, struct netlink_callback *cb)
625
625
void smc_lgr_cleanup_early (struct smc_connection * conn )
626
626
{
627
627
struct smc_link_group * lgr = conn -> lgr ;
628
- struct list_head * lgr_list ;
629
628
spinlock_t * lgr_lock ;
630
629
631
630
if (!lgr )
632
631
return ;
633
632
634
633
smc_conn_free (conn );
635
- lgr_list = smc_lgr_list_head (lgr , & lgr_lock );
634
+ smc_lgr_list_head (lgr , & lgr_lock );
636
635
spin_lock_bh (lgr_lock );
637
636
/* do not use this link group for new connections */
638
- if (!list_empty (lgr_list ))
639
- list_del_init (lgr_list );
637
+ if (!list_empty (& lgr -> list ))
638
+ list_del_init (& lgr -> list );
640
639
spin_unlock_bh (lgr_lock );
641
640
__smc_lgr_terminate (lgr , true);
642
641
}
You can’t perform that action at this time.
0 commit comments