diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2013-09-20 15:06:40 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-09-25 17:23:28 -0700 |
commit | d47aa4536dfc9385e02a4dcbed2cf7bea3a18492 (patch) | |
tree | 7060d8b0e93c70eb341ba4acd5d2559caea19bfe /drivers/usb/gadget/net2280.c | |
parent | b85862654cdd9bfa71eb68ea8f672aa4fef15d22 (diff) | |
download | op-kernel-dev-d47aa4536dfc9385e02a4dcbed2cf7bea3a18492.zip op-kernel-dev-d47aa4536dfc9385e02a4dcbed2cf7bea3a18492.tar.gz |
usb: gadget: Remove redundant pci_set_drvdata
Driver core sets driver data to NULL upon failure or remove.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/gadget/net2280.c')
-rw-r--r-- | drivers/usb/gadget/net2280.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/usb/gadget/net2280.c b/drivers/usb/gadget/net2280.c index 0781bff..9fbc8fe 100644 --- a/drivers/usb/gadget/net2280.c +++ b/drivers/usb/gadget/net2280.c @@ -2680,7 +2680,6 @@ static void net2280_remove (struct pci_dev *pdev) if (dev->enabled) pci_disable_device (pdev); device_remove_file (&pdev->dev, &dev_attr_registers); - pci_set_drvdata (pdev, NULL); INFO (dev, "unbind\n"); } |