scsi: myrb: Don't use GFP_DMA in myrb_pdev_slave_alloc()
authorChristoph Hellwig <hch@lst.de>
Wed, 22 Dec 2021 09:18:01 +0000 (10:18 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 23 Dec 2021 04:42:23 +0000 (23:42 -0500)
The driver doesn't express DMA addressing limitation under 32-bits anywhere
else, so remove the spurious GFP_DMA allocation.

Link: https://lore.kernel.org/r/20211222091801.924745-1-hch@lst.de
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/myrb.c

index 2a4506a..7158552 100644 (file)
@@ -1674,7 +1674,7 @@ static int myrb_pdev_slave_alloc(struct scsi_device *sdev)
        if (sdev->id > MYRB_MAX_TARGETS)
                return -ENXIO;
 
-       pdev_info = kzalloc(sizeof(*pdev_info), GFP_KERNEL|GFP_DMA);
+       pdev_info = kzalloc(sizeof(*pdev_info), GFP_KERNEL);
        if (!pdev_info)
                return -ENOMEM;