Commit cc83881f authored by Andy Grover's avatar Andy Grover Committed by Nicholas Bellinger

target: core_tpg_post_dellun can return void

Nothing in it can raise an error.
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarAndy Grover <agrover@redhat.com>
Signed-off-by: default avatarNicholas Bellinger <nab@linux-iscsi.org>
parent c435285d
...@@ -83,7 +83,7 @@ struct se_lun *core_tpg_alloc_lun(struct se_portal_group *, u32); ...@@ -83,7 +83,7 @@ struct se_lun *core_tpg_alloc_lun(struct se_portal_group *, u32);
int core_tpg_add_lun(struct se_portal_group *, struct se_lun *, int core_tpg_add_lun(struct se_portal_group *, struct se_lun *,
u32, struct se_device *); u32, struct se_device *);
struct se_lun *core_tpg_pre_dellun(struct se_portal_group *, u32 unpacked_lun); struct se_lun *core_tpg_pre_dellun(struct se_portal_group *, u32 unpacked_lun);
int core_tpg_post_dellun(struct se_portal_group *, struct se_lun *); void core_tpg_post_dellun(struct se_portal_group *, struct se_lun *);
/* target_core_transport.c */ /* target_core_transport.c */
extern struct kmem_cache *se_tmr_req_cache; extern struct kmem_cache *se_tmr_req_cache;
......
...@@ -867,7 +867,7 @@ struct se_lun *core_tpg_pre_dellun( ...@@ -867,7 +867,7 @@ struct se_lun *core_tpg_pre_dellun(
return lun; return lun;
} }
int core_tpg_post_dellun( void core_tpg_post_dellun(
struct se_portal_group *tpg, struct se_portal_group *tpg,
struct se_lun *lun) struct se_lun *lun)
{ {
...@@ -881,6 +881,4 @@ int core_tpg_post_dellun( ...@@ -881,6 +881,4 @@ int core_tpg_post_dellun(
spin_unlock(&tpg->tpg_lun_lock); spin_unlock(&tpg->tpg_lun_lock);
percpu_ref_exit(&lun->lun_ref); percpu_ref_exit(&lun->lun_ref);
return 0;
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment