Commit c981e9e0 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Martin K. Petersen
Browse files

scsi: initio: Don't use GFP_DMA in initio_probe_one()

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: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent d94d9496
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;
	}