Skip to contentSkip to conversation

staging: vt6655: Remove redundant cast

PATCH Superseded Rasmus Villemoes 1 participant 1 message Oct 21, 2014 Staging

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: vt6655: Remove redundant cast

Both sides have type const struct iw_handler_def*, so the cast is unnecessary and confusing.

---
 drivers/staging/vt6655/device_main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/vt6655/device_main.c +1 -1
index 54e16f4..9281713 100644
@@ -936,7 +936,7 @@ vt6655_probe(struct pci_dev *pcid, const struct pci_device_id *ent)
 	dev->irq                = pcid->irq;
 	dev->netdev_ops         = &device_netdev_ops;
 
-	dev->wireless_handlers = (struct iw_handler_def *)&iwctl_handler_def;
+	dev->wireless_handlers = &iwctl_handler_def;
 
 	rc = register_netdev(dev);
 	if (rc) {
Signature · 1 line
2.0.4