summaryrefslogtreecommitdiffstats
path: root/drivers/char
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/char')
-rw-r--r--drivers/char/xilinx_hwicap/xilinx_hwicap.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/char/xilinx_hwicap/xilinx_hwicap.c b/drivers/char/xilinx_hwicap/xilinx_hwicap.c
index c4d75e684be6..87ece300b2ca 100644
--- a/drivers/char/xilinx_hwicap/xilinx_hwicap.c
+++ b/drivers/char/xilinx_hwicap/xilinx_hwicap.c
@@ -810,8 +810,6 @@ static int hwicap_drv_remove(struct platform_device *pdev)
struct hwicap_drvdata *drvdata;
drvdata = dev_get_drvdata(dev);
- if (!drvdata)
- return 0;
device_destroy(icap_class, drvdata->devt);
cdev_del(&drvdata->cdev);