diff options
author | Andy Grover <agrover@redhat.com> | 2014-06-30 19:39:43 -0400 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2014-10-01 17:38:41 -0400 |
commit | cc83881f2c57caaf4b14adaffa65595640a59661 (patch) | |
tree | fc1bc9d52219265e5f82e15e6174ef46fe833971 /drivers/target | |
parent | c435285df112da1125e61d826b03014a4e769386 (diff) |
target: core_tpg_post_dellun can return void
Nothing in it can raise an error.
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Andy Grover <agrover@redhat.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target')
-rw-r--r-- | drivers/target/target_core_internal.h | 2 | ||||
-rw-r--r-- | drivers/target/target_core_tpg.c | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/drivers/target/target_core_internal.h b/drivers/target/target_core_internal.h index de9cab708f45..463fddcd0ef6 100644 --- a/drivers/target/target_core_internal.h +++ b/drivers/target/target_core_internal.h | |||
@@ -83,7 +83,7 @@ struct se_lun *core_tpg_alloc_lun(struct se_portal_group *, u32); | |||
83 | int core_tpg_add_lun(struct se_portal_group *, struct se_lun *, | 83 | int core_tpg_add_lun(struct se_portal_group *, struct se_lun *, |
84 | u32, struct se_device *); | 84 | u32, struct se_device *); |
85 | struct se_lun *core_tpg_pre_dellun(struct se_portal_group *, u32 unpacked_lun); | 85 | struct se_lun *core_tpg_pre_dellun(struct se_portal_group *, u32 unpacked_lun); |
86 | int core_tpg_post_dellun(struct se_portal_group *, struct se_lun *); | 86 | void core_tpg_post_dellun(struct se_portal_group *, struct se_lun *); |
87 | 87 | ||
88 | /* target_core_transport.c */ | 88 | /* target_core_transport.c */ |
89 | extern struct kmem_cache *se_tmr_req_cache; | 89 | extern struct kmem_cache *se_tmr_req_cache; |
diff --git a/drivers/target/target_core_tpg.c b/drivers/target/target_core_tpg.c index fddfae61222f..b596ab509197 100644 --- a/drivers/target/target_core_tpg.c +++ b/drivers/target/target_core_tpg.c | |||
@@ -867,7 +867,7 @@ struct se_lun *core_tpg_pre_dellun( | |||
867 | return lun; | 867 | return lun; |
868 | } | 868 | } |
869 | 869 | ||
870 | int core_tpg_post_dellun( | 870 | void core_tpg_post_dellun( |
871 | struct se_portal_group *tpg, | 871 | struct se_portal_group *tpg, |
872 | struct se_lun *lun) | 872 | struct se_lun *lun) |
873 | { | 873 | { |
@@ -881,6 +881,4 @@ int core_tpg_post_dellun( | |||
881 | spin_unlock(&tpg->tpg_lun_lock); | 881 | spin_unlock(&tpg->tpg_lun_lock); |
882 | 882 | ||
883 | percpu_ref_exit(&lun->lun_ref); | 883 | percpu_ref_exit(&lun->lun_ref); |
884 | |||
885 | return 0; | ||
886 | } | 884 | } |