scsi: libfc: Replace ->seq_release callback with function call
The ->seq_release callback only ever had one implementation, so call the function 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
96d564e24a
commit
9625cc483b
@@ -1497,10 +1497,11 @@ EXPORT_SYMBOL(fc_seq_assign);
|
||||
* fc_seq_release() - Release the hold
|
||||
* @sp: The sequence.
|
||||
*/
|
||||
static void fc_seq_release(struct fc_seq *sp)
|
||||
void fc_seq_release(struct fc_seq *sp)
|
||||
{
|
||||
fc_exch_release(fc_seq_exch(sp));
|
||||
}
|
||||
EXPORT_SYMBOL(fc_seq_release);
|
||||
|
||||
/**
|
||||
* fc_exch_recv_req() - Handler for an incoming request
|
||||
@@ -2654,9 +2655,6 @@ int fc_exch_init(struct fc_lport *lport)
|
||||
if (!lport->tt.exch_mgr_reset)
|
||||
lport->tt.exch_mgr_reset = fc_exch_mgr_reset;
|
||||
|
||||
if (!lport->tt.seq_release)
|
||||
lport->tt.seq_release = fc_seq_release;
|
||||
|
||||
return 0;
|
||||
}
|
||||
EXPORT_SYMBOL(fc_exch_init);
|
||||
|
Reference in New Issue
Block a user