[SCSI] libfc: simplify fc_lport_rport_callback
authorJoe Eykholt <jeykholt@cisco.com>
Tue, 25 Aug 2009 21:01:44 +0000 (14:01 -0700)
committerJames Bottomley <James.Bottomley@suse.de>
Thu, 10 Sep 2009 17:07:46 +0000 (12:07 -0500)
commitb5cbf083736e14911c32fca2a93c540a92e8413d
tree7495e2e08d2d7ee71abfb674700c9a631a478c54
parentcdbe6dfece038e75214735d56cd06319b9a6df46
[SCSI] libfc: simplify fc_lport_rport_callback

The lport rport callback can only be called for the dNS rport,
since its the only rport who's ops point to that function.

Remove unnecessary checking and debug messages.
Put the locking outside the switch statement as a simplification.

Signed-off-by: Joe Eykholt <jeykholt@cisco.com>
Signed-off-by: Robert Love <robert.w.love@intel.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/libfc/fc_lport.c