On Tue, 15 Jun 2021 09:34:29 +0800 "Min Hu (Connor)" <humi...@huawei.com> wrote:
> + return (void *)((char *)pci_dev->mem_resource[bar_id].addr + > + (pci_dev->mem_resource[bar_id].len >> 1) + > + HNS3_TX_PUSH_TQP_REGION_SIZE * queue_id + > + HNS3_TX_PUSH_QUICK_DOORBELL_OFFSET); Minor nit: cast here (in C) is unnecessary. C will automatically cast the return any pointer type to void *