scsi: initio: Don't use GFP_DMA in initio_probe_one()
authorChristoph Hellwig <hch@lst.de>
Wed, 22 Dec 2021 09:16:30 +0000 (10:16 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 23 Dec 2021 04:41:53 +0000 (23:41 -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/20211222091630.922788-1-hch@lst.de
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/initio.c

index 9cdee38..5f96ac4 100644 (file)
@@ -2847,7 +2847,8 @@ static int initio_probe_one(struct pci_dev *pdev,
 
        for (; num_scb >= MAX_TARGETS + 3; num_scb--) {
                i = num_scb * sizeof(struct scsi_ctrl_blk);
-               if ((scb = kzalloc(i, GFP_DMA)) != NULL)
+               scb = kzalloc(i, GFP_KERNEL);
+               if (scb)
                        break;
        }