]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
staging: vt6655: Remove redundant cast
authorRasmus Villemoes <linux@rasmusvillemoes.dk>
Tue, 21 Oct 2014 15:00:24 +0000 (17:00 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Oct 2014 09:19:38 +0000 (17:19 +0800)
Both sides have type const struct iw_handler_def*, so the cast is
unnecessary and confusing.

Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6655/device_main.c

index c8f262f58c7b4f535d50e9d88574119d69385b4e..ef848e2f05856d88af807702add323d30273dfb4 100644 (file)
@@ -932,7 +932,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) {