diff options
author | Hannes Reinecke <hare@suse.de> | 2016-10-18 10:01:39 +0200 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2016-11-08 17:29:55 -0500 |
commit | 944ef9689d8affc13d16c09ac2dba56c5b4c5ff7 (patch) | |
tree | d99ff5c4fedf537ff97afa5f4983a4142cf15dbd /include/scsi/libfc.h | |
parent | 3afd2d1521951cb05ef5279b71634cc55ace688b (diff) | |
download | linux-944ef9689d8affc13d16c09ac2dba56c5b4c5ff7.tar.gz linux-944ef9689d8affc13d16c09ac2dba56c5b4c5ff7.tar.bz2 linux-944ef9689d8affc13d16c09ac2dba56c5b4c5ff7.zip |
scsi: libfc: Replace ->rport_destroy callback with function call
The ->rport_destroy callback only ever had one implementation,
so we can as well call it directly and drop the callback.
Signed-off-by: Hannes Reinecke <hare@suse.com>
Acked-by: Johannes Thumshirn <jth@kernel.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'include/scsi/libfc.h')
-rw-r--r-- | include/scsi/libfc.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/include/scsi/libfc.h b/include/scsi/libfc.h index 5e8a2083dbf0..cec450f2db7b 100644 --- a/include/scsi/libfc.h +++ b/include/scsi/libfc.h @@ -652,12 +652,6 @@ struct libfc_function_template { struct fc_rport_priv *(*rport_lookup)(const struct fc_lport *, u32); /* - * Destroy an rport after final kref_put(). - * The argument is a pointer to the kref inside the fc_rport_priv. - */ - void (*rport_destroy)(struct kref *); - - /* * Callback routine after the remote port is logged in * * STATUS: OPTIONAL @@ -1035,6 +1029,7 @@ void fc_lport_iterate(void (*func)(struct fc_lport *, void *), void *); *****************************/ int fc_rport_init(struct fc_lport *); void fc_rport_terminate_io(struct fc_rport *); +void fc_rport_destroy(struct kref *kref); /* * DISCOVERY LAYER |