scsi: core: Delete unnecessary buffer allocation for every loop iteration
authorYe Bin <yebin10@huawei.com>
Fri, 17 Jul 2020 09:09:21 +0000 (17:09 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Sat, 25 Jul 2020 02:09:57 +0000 (22:09 -0400)
commit811f39479c0c2d4da959b8d915f2f699d70ab143
tree15ff16bb88815eff8053ca5784e231725c04e0a5
parentf30785db7546520acd53aac7497d42352ff031e0
scsi: core: Delete unnecessary buffer allocation for every loop iteration

No need to allocate buffer every loop iteration. Allocate buffer once and
reuse it.

Link: https://lore.kernel.org/r/20200717090921.29243-2-yebin10@huawei.com
Signed-off-by: Ye Bin <yebin10@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/scsi_logging.c