The reference counting code can be simplified. Instead taking a tgtportReviewed-by: Hannes Reinecke <hare@xxxxxxx>
refrerence at the beginning of nvmet_fc_alloc_hostport and put it back
if not a new hostport object is allocated, only take it when a new
hostport object is allocated.
Signed-off-by: Daniel Wagner <wagi@xxxxxxxxxx>
---
drivers/nvme/target/fc.c | 24 +++++++++---------------
1 file changed, 9 insertions(+), 15 deletions(-)