On Wed, Apr 8, 2009 at 13:21, Jack Stone <jwjstone@xxxxxxxxxxx> wrote: > Remove uneeded void casts > > Signed-Off-By: Jack Stone <jwjstone@xxxxxxxxxxx> > --- > drivers/message/fusion/mptbase.c | 6 +++--- > drivers/message/fusion/mptctl.c | 4 ++-- > drivers/message/fusion/mptfc.c | 4 ++-- > 3 files changed, 7 insertions(+), 7 deletions(-) > > diff --git a/drivers/message/fusion/mptctl.c b/drivers/message/fusion/mptctl.c > index c638171..fbcd791 100644 > --- a/drivers/message/fusion/mptctl.c > +++ b/drivers/message/fusion/mptctl.c > @@ -2667,7 +2667,7 @@ mptctl_hp_targetinfo(unsigned long arg) > /* Issue the second config page request */ > cfg.action = MPI_CONFIG_ACTION_PAGE_READ_CURRENT; > data_sz = (int) cfg.cfghdr.hdr->PageLength * 4; > - pg3_alloc = (SCSIDevicePage3_t *) pci_alloc_consistent( > + pg3_alloc = pci_alloc_consistent( > ioc->pcidev, data_sz, &page_dma); Dito. (Sorry for being lazy in typing from this point up). > if (pg3_alloc) { > cfg.physAddr = page_dma; > diff --git a/drivers/message/fusion/mptfc.c b/drivers/message/fusion/mptfc.c > index c3c24fd..d22acfd 100644 > --- a/drivers/message/fusion/mptfc.c > +++ b/drivers/message/fusion/mptfc.c > @@ -766,7 +766,7 @@ mptfc_GetFcPortPage0(MPT_ADAPTER *ioc, int portnum) > > data_sz = hdr.PageLength * 4; > rc = -ENOMEM; > - ppage0_alloc = (FCPortPage0_t *) pci_alloc_consistent(ioc->pcidev, data_sz, &page0_dma); > + ppage0_alloc = pci_alloc_consistent(ioc->pcidev, data_sz, &page0_dma); > if (ppage0_alloc) { > > try_again: > @@ -907,7 +907,7 @@ start_over: > if (data_sz < sizeof(FCPortPage1_t)) > data_sz = sizeof(FCPortPage1_t); > > - page1_alloc = (FCPortPage1_t *) pci_alloc_consistent(ioc->pcidev, > + page1_alloc = pci_alloc_consistent(ioc->pcidev, > data_sz, > &page1_dma); Please check. > if (!page1_alloc) Bert -- To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html