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>
This commit is contained in:

committed by
Martin K. Petersen

parent
3afd2d1521
commit
944ef9689d
@@ -651,12 +651,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
|
||||
*
|
||||
@@ -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
|
||||
|
Reference in New Issue
Block a user