Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

misc: ocxl: link: Remove unnecessary (void*) conversions

The link pointer does not need to cast the type.

Signed-off-by: Li zeming <zeming@nfschina.com>
Acked-by: Andrew Donnellan <ajd@linux.ibm.com>
Acked-by: Frederic Barrat <fbarrat@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20231113014533.11064-1-zeming@nfschina.com

authored by

Li zeming and committed by
Michael Ellerman
220f3ced 84ba5d36

+7 -7
+7 -7
drivers/misc/ocxl/link.c
··· 188 188 189 189 static irqreturn_t xsl_fault_handler(int irq, void *data) 190 190 { 191 - struct ocxl_link *link = (struct ocxl_link *) data; 191 + struct ocxl_link *link = data; 192 192 struct spa *spa = link->spa; 193 193 u64 dsisr, dar, pe_handle; 194 194 struct pe_data *pe_data; ··· 483 483 484 484 void ocxl_link_release(struct pci_dev *dev, void *link_handle) 485 485 { 486 - struct ocxl_link *link = (struct ocxl_link *) link_handle; 486 + struct ocxl_link *link = link_handle; 487 487 488 488 mutex_lock(&links_list_lock); 489 489 kref_put(&link->ref, release_xsl); ··· 540 540 void (*xsl_err_cb)(void *data, u64 addr, u64 dsisr), 541 541 void *xsl_err_data) 542 542 { 543 - struct ocxl_link *link = (struct ocxl_link *) link_handle; 543 + struct ocxl_link *link = link_handle; 544 544 struct spa *spa = link->spa; 545 545 struct ocxl_process_element *pe; 546 546 int pe_handle, rc = 0; ··· 630 630 631 631 int ocxl_link_update_pe(void *link_handle, int pasid, __u16 tid) 632 632 { 633 - struct ocxl_link *link = (struct ocxl_link *) link_handle; 633 + struct ocxl_link *link = link_handle; 634 634 struct spa *spa = link->spa; 635 635 struct ocxl_process_element *pe; 636 636 int pe_handle, rc; ··· 666 666 667 667 int ocxl_link_remove_pe(void *link_handle, int pasid) 668 668 { 669 - struct ocxl_link *link = (struct ocxl_link *) link_handle; 669 + struct ocxl_link *link = link_handle; 670 670 struct spa *spa = link->spa; 671 671 struct ocxl_process_element *pe; 672 672 struct pe_data *pe_data; ··· 752 752 753 753 int ocxl_link_irq_alloc(void *link_handle, int *hw_irq) 754 754 { 755 - struct ocxl_link *link = (struct ocxl_link *) link_handle; 755 + struct ocxl_link *link = link_handle; 756 756 int irq; 757 757 758 758 if (atomic_dec_if_positive(&link->irq_available) < 0) ··· 771 771 772 772 void ocxl_link_free_irq(void *link_handle, int hw_irq) 773 773 { 774 - struct ocxl_link *link = (struct ocxl_link *) link_handle; 774 + struct ocxl_link *link = link_handle; 775 775 776 776 xive_native_free_irq(hw_irq); 777 777 atomic_inc(&link->irq_available);