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)
625625void smc_lgr_cleanup_early (struct smc_connection * conn )
626626{
627627 struct smc_link_group * lgr = conn -> lgr ;
628- struct list_head * lgr_list ;
629628 spinlock_t * lgr_lock ;
630629
631630 if (!lgr )
632631 return ;
633632
634633 smc_conn_free (conn );
635- lgr_list = smc_lgr_list_head (lgr , & lgr_lock );
634+ smc_lgr_list_head (lgr , & lgr_lock );
636635 spin_lock_bh (lgr_lock );
637636 /* 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 );
640639 spin_unlock_bh (lgr_lock );
641640 __smc_lgr_terminate (lgr , true);
642641}
You can’t perform that action at this time.
0 commit comments