Skip to content

Commit

Permalink
sata_dwc_460ex: remove redundant dev_set_drvdata
Browse files Browse the repository at this point in the history
Driver core sets it to NULL upon probe failure or release.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
  • Loading branch information
Andy Shevchenko authored and Tejun Heo committed Jan 8, 2015
1 parent b6e94f3 commit f71d148
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/ata/sata_dwc_460ex.c
Original file line number Diff line number Diff line change
Expand Up @@ -1783,7 +1783,6 @@ static int sata_dwc_remove(struct platform_device *ofdev)
struct sata_dwc_device *hsdev = host->private_data;

ata_host_detach(host);
dev_set_drvdata(dev, NULL);

/* Free SATA DMA resources */
dma_dwc_exit(hsdev);
Expand Down

0 comments on commit f71d148

Please sign in to comment.