hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/message/fusion/mptctl.c
....@@ -565,7 +565,7 @@
565565 * TODO - this define is not in MPI spec yet,
566566 * but they plan to set it to 0x21
567567 */
568
- if (event == 0x21 ) {
568
+ if (event == 0x21) {
569569 ioc->aen_event_read_flag=1;
570570 dctlprintk(ioc, printk(MYIOC_s_DEBUG_FMT "Raised SIGIO to application\n",
571571 ioc->name));
....@@ -2593,7 +2593,7 @@
25932593 /* Get the data transfer speeds
25942594 */
25952595 data_sz = ioc->spi_data.sdp0length * 4;
2596
- pg0_alloc = (SCSIDevicePage0_t *) pci_alloc_consistent(ioc->pcidev, data_sz, &page_dma);
2596
+ pg0_alloc = pci_alloc_consistent(ioc->pcidev, data_sz, &page_dma);
25972597 if (pg0_alloc) {
25982598 hdr.PageVersion = ioc->spi_data.sdp0version;
25992599 hdr.PageLength = data_sz;
....@@ -2657,8 +2657,7 @@
26572657 /* Issue the second config page request */
26582658 cfg.action = MPI_CONFIG_ACTION_PAGE_READ_CURRENT;
26592659 data_sz = (int) cfg.cfghdr.hdr->PageLength * 4;
2660
- pg3_alloc = (SCSIDevicePage3_t *) pci_alloc_consistent(
2661
- ioc->pcidev, data_sz, &page_dma);
2660
+ pg3_alloc = pci_alloc_consistent(ioc->pcidev, data_sz, &page_dma);
26622661 if (pg3_alloc) {
26632662 cfg.physAddr = page_dma;
26642663 cfg.pageAddr = (karg.hdr.channel << 8) | karg.hdr.id;