nvmet-fc: Remove unused function
Subsystems (3)
PATCH 1/1 nvmet-fc: Remove unused function
The function are defined in the fc.c file, but not called elsewhere, so delete the unused function.
drivers/nvme/target/fc.c:177:1: warning: unused function 'nvmet_fc_iodnum'. drivers/nvme/target/fc.c:183:1: warning: unused function 'nvmet_fc_fodnum'.
Reported-by Abaci Robot <[email protected]>
Signed-off-by Jiapeng Chong <[email protected]>
--- drivers/nvme/target/fc.c | 14 -------------- 1 file changed, 14 deletions(-)
drivers/nvme/target/fc.c +0 -14
@@ -172,20 +172,6 @@ struct nvmet_fc_tgt_assoc {struct rcu_head rcu; }; - -static inline int -nvmet_fc_iodnum (struct nvmet_fc_ls_iod *iodptr) -{ -return (iodptr - iodptr->tgtport->iod); -} - -static inline int -nvmet_fc_fodnum (struct nvmet_fc_fcp_iod *fodptr) -{ -return (fodptr - fodptr->queue->fod); -} - -/* * Association and Connection IDs: *
Signature · 1 line
2.20.1.7.g153144c
Looks good:
Reviewed-by Christoph Hellwig <[email protected]>