skd: remove redundant skdev->pdev assignment from skd_pci_probe()
authorBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Tue, 5 Nov 2013 11:37:05 +0000 (12:37 +0100)
committerJens Axboe <axboe@kernel.dk>
Fri, 8 Nov 2013 16:10:30 +0000 (09:10 -0700)
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 <abhansali@stec-inc.com>
Cc: Jeff Moyer <jmoyer@redhat.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/skd_main.c

index e3dfd0dae44a9cad55a70f4736ed614aa672b52c..70118a12eb37d5fd95c8c70d267c3289fb637a84 100644 (file)
@@ -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++) {