From: Bartlomiej Zolnierkiewicz Date: Tue, 5 Nov 2013 11:37:05 +0000 (+0100) Subject: skd: remove redundant skdev->pdev assignment from skd_pci_probe() X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=ebedd16dab5e7cf22fb1156b74fa53f0233389a7;p=openwrt%2Fstaging%2Fblogic.git skd: remove redundant skdev->pdev assignment from skd_pci_probe() skdev->pdev is set to pdev twice in skd_pci_probe(), first time through skd_construct() call and the second time directly in the function. Remove the second assignment as it is not needed. Cc: Akhil Bhansali Cc: Jeff Moyer Signed-off-by: Bartlomiej Zolnierkiewicz Signed-off-by: Kyungmin Park Signed-off-by: Jens Axboe --- diff --git a/drivers/block/skd_main.c b/drivers/block/skd_main.c index e3dfd0dae44a..70118a12eb37 100644 --- a/drivers/block/skd_main.c +++ b/drivers/block/skd_main.c @@ -4925,7 +4925,7 @@ static int skd_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent) pci_set_drvdata(pdev, skdev); - skdev->pdev = pdev; + skdev->disk->driverfs_dev = &pdev->dev; for (i = 0; i < SKD_MAX_BARS; i++) {