scsi: gdth: reuse dma coherent allocation in gdth_show_info
authorChristoph Hellwig <hch@lst.de>
Wed, 12 Dec 2018 07:41:19 +0000 (08:41 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 9 Jan 2019 02:57:42 +0000 (21:57 -0500)
commit8d22022c3a56314b182810794cae47686b765313
tree7ee0ab62e3525d48b920f24041b8bfd731da74f7
parent9f475ebff8e437ccccb3cf0259b5de7540f413be
scsi: gdth: reuse dma coherent allocation in gdth_show_info

gdth_show_info currently allocs and frees a dma buffer four times which
isn't very efficient. Reuse a single allocation instead.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/gdth_proc.c