mirror of
https://github.com/torvalds/linux.git
synced 2026-05-24 15:12:13 +02:00
nvmet-fc: inline nvmet_fc_delete_assoc
No need for this tiny helper with only one user, just inline it. Signed-off-by: Daniel Wagner <wagi@kernel.org> Reviewed-by: Hannes Reinecke <hare@suse.de> Signed-off-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
parent
72511b1dc4
commit
aeaa0913a6
|
|
@ -1075,13 +1075,6 @@ nvmet_fc_alloc_hostport(struct nvmet_fc_tgtport *tgtport, void *hosthandle)
|
|||
return newhost;
|
||||
}
|
||||
|
||||
static void
|
||||
nvmet_fc_delete_assoc(struct nvmet_fc_tgt_assoc *assoc)
|
||||
{
|
||||
nvmet_fc_delete_target_assoc(assoc);
|
||||
nvmet_fc_tgt_a_put(assoc);
|
||||
}
|
||||
|
||||
static void
|
||||
nvmet_fc_delete_assoc_work(struct work_struct *work)
|
||||
{
|
||||
|
|
@ -1089,7 +1082,8 @@ nvmet_fc_delete_assoc_work(struct work_struct *work)
|
|||
container_of(work, struct nvmet_fc_tgt_assoc, del_work);
|
||||
struct nvmet_fc_tgtport *tgtport = assoc->tgtport;
|
||||
|
||||
nvmet_fc_delete_assoc(assoc);
|
||||
nvmet_fc_delete_target_assoc(assoc);
|
||||
nvmet_fc_tgt_a_put(assoc);
|
||||
nvmet_fc_tgtport_put(tgtport);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user