scsi: libfc: Replace ->rport_lookup callback with function call
The ->rport_lookup callback only ever had a single 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>
Цей коміт міститься в:

зафіксовано
Martin K. Petersen

джерело
944ef9689d
коміт
e87b777793
@@ -644,13 +644,6 @@ struct libfc_function_template {
|
||||
*/
|
||||
void (*rport_recv_req)(struct fc_lport *, struct fc_frame *);
|
||||
|
||||
/*
|
||||
* lookup an rport by it's port ID.
|
||||
*
|
||||
* STATUS: OPTIONAL
|
||||
*/
|
||||
struct fc_rport_priv *(*rport_lookup)(const struct fc_lport *, u32);
|
||||
|
||||
/*
|
||||
* Callback routine after the remote port is logged in
|
||||
*
|
||||
@@ -1029,6 +1022,8 @@ 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 *);
|
||||
struct fc_rport_priv *fc_rport_lookup(const struct fc_lport *lport,
|
||||
u32 port_id);
|
||||
void fc_rport_destroy(struct kref *kref);
|
||||
|
||||
/*
|
||||
|
Посилання в новій задачі
Заблокувати користувача