]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: aic7xxx: Use kmemdup() in two places
authorAlex Dewar <alex.dewar90@gmail.com>
Wed, 9 Sep 2020 18:58:55 +0000 (19:58 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 16 Sep 2020 01:59:06 +0000 (21:59 -0400)
commit6276c141aa7dbaeca1b8d6be744bfe0d8fd8ac37
treed3c98cd489858c7b65fe561bccaf0ea41bcf5289
parentd7d9b498f552a372ea0f9249f856e025bed437ae
scsi: aic7xxx: Use kmemdup() in two places

kmemdup() can be used instead of kmalloc()+memcpy(). Replace two
occurrences of this pattern.

Issue identified with Coccinelle.

Link: https://lore.kernel.org/r/20200909185855.151964-1-alex.dewar90@gmail.com
Signed-off-by: Alex Dewar <alex.dewar90@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/aic7xxx/aic79xx_core.c
drivers/scsi/aic7xxx/aic7xxx_core.c