]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: target: Remove unused variable 'tpg'
authorWei Yongjun <weiyongjun1@huawei.com>
Thu, 9 Jul 2020 11:46:36 +0000 (19:46 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 14 Jul 2020 03:11:15 +0000 (23:11 -0400)
commitb274c0e269423471bb0ffc57f265b6d018f108e4
treebd3fb074c136b8256f657e53f2335bbd9cd9fd1e
parentb9a02456a1ae0f8170ee256f4cc40a2c43c71b3a
scsi: target: Remove unused variable 'tpg'

Gcc reports warning as follows:

drivers/target/target_core_pr.c:1162:26: warning:
 variable 'tpg' set but not used [-Wunused-but-set-variable]
 1162 |  struct se_portal_group *tpg;
      |                          ^~~

After commit 977bd59e97e2 ("scsi: target: Check enforce_pr_isids during
registration"), 'tpg' is never used. Remove it to avoid build warning.

Link: https://lore.kernel.org/r/20200709114636.69256-1-weiyongjun1@huawei.com
Reported-by: Hulk Robot <hulkci@huawei.com>
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
Reviewed-by: Mike Christie <michael.christie@oracle.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/target/target_core_pr.c