target: core_tpg_post_dellun can return void
authorAndy Grover <agrover@redhat.com>
Mon, 30 Jun 2014 23:39:43 +0000 (16:39 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Wed, 1 Oct 2014 21:38:41 +0000 (14:38 -0700)
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>
drivers/target/target_core_internal.h
drivers/target/target_core_tpg.c

index de9cab708f4590ee98034898992e68c1f0459077..463fddcd0ef683d0f5865f478f2e9ba17e87b5d6 100644 (file)
@@ -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 *,
                u32, struct se_device *);
 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 */
 extern struct kmem_cache *se_tmr_req_cache;
index fddfae61222f2e3bf3a063d6ab11d6438e4ff897..b596ab509197b9cd6f3f6fd410fd9cf8647da387 100644 (file)
@@ -867,7 +867,7 @@ struct se_lun *core_tpg_pre_dellun(
        return lun;
 }
 
-int core_tpg_post_dellun(
+void core_tpg_post_dellun(
        struct se_portal_group *tpg,
        struct se_lun *lun)
 {
@@ -881,6 +881,4 @@ int core_tpg_post_dellun(
        spin_unlock(&tpg->tpg_lun_lock);
 
        percpu_ref_exit(&lun->lun_ref);
-
-       return 0;
 }