Skip to contentSkip to conversation

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

PATCH Applied Li zeming 4 participants 4 messages Nov 13, 2023 – Dec 7, 2023

Subsystems (2)
lore
Share & tools
lore

Li zeming

author
#0 lore raw

PATCH 1/1 misc: ocxl: afu_irq: Remove unnecessary (void*) conversions

The irq pointer does not need to cast the type.

---
 drivers/misc/ocxl/afu_irq.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/misc/ocxl/afu_irq.c +1 -1
index a06920b7e049a..36f7379b8e2de 100644
@@ -57,7 +57,7 @@ EXPORT_SYMBOL_GPL(ocxl_irq_set_handler);
 
 static irqreturn_t afu_irq_handler(int virq, void *data)
 {
-	struct afu_irq *irq = (struct afu_irq *) data;
+	struct afu_irq *irq = data;
 
 	trace_ocxl_afu_irq_receive(virq);
 
Signature · 1 line
2.18.2
Acked-by on v1 1/1
#1 lore raw
Quoted 4 lines · Li zeming

The irq pointer does not need to cast the type.

---

Fred

Quoted 16 lines
  drivers/misc/ocxl/afu_irq.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/misc/ocxl/afu_irq.c +1 -1
index a06920b7e049a..36f7379b8e2de 100644
@@ -57,7 +57,7 @@ EXPORT_SYMBOL_GPL(ocxl_irq_set_handler);
 
  static irqreturn_t afu_irq_handler(int virq, void *data)
  {
-	struct afu_irq *irq = (struct afu_irq *) data;
+	struct afu_irq *irq = data;
 
  	trace_ocxl_afu_irq_receive(virq);
 
Acked-by on v1 1/1
#2 lore raw
In reply to Li zeming
Quoted 3 lines · Li zeming

The irq pointer does not need to cast the type.

Quoted 18 lines

---
 drivers/misc/ocxl/afu_irq.c | 2 +-

 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/misc/ocxl/afu_irq.c +0 -0
index a06920b7e049a..36f7379b8e2de 100644
@@ -57,7 +57,7 @@ EXPORT_SYMBOL_GPL(ocxl_irq_set_handler);


 static irqreturn_t afu_irq_handler(int virq, void *data) {

drivers/misc/ocxl/afu_irq.c +1 -1
-	struct afu_irq *irq = (struct afu_irq *) data;
+	struct afu_irq *irq = data;


  trace_ocxl_afu_irq_receive(virq);

Signature · 2 lines
Andrew Donnellan    OzLabs, ADL Canberra
[email protected]   IBM Australia Limited