diff options
author | Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> | 2013-11-05 06:37:05 -0500 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2013-11-08 11:10:30 -0500 |
commit | ebedd16dab5e7cf22fb1156b74fa53f0233389a7 (patch) | |
tree | e3af710cb8f584dd17a2a3810718c274678f57a4 /drivers/block/skd_main.c | |
parent | 4ca90b533278f15849287b5b6c0c7dc45b134cde (diff) |
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 <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>
Diffstat (limited to 'drivers/block/skd_main.c')
-rw-r--r-- | drivers/block/skd_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
4925 | 4925 | ||
4926 | 4926 | ||
4927 | pci_set_drvdata(pdev, skdev); | 4927 | pci_set_drvdata(pdev, skdev); |
4928 | skdev->pdev = pdev; | 4928 | |
4929 | skdev->disk->driverfs_dev = &pdev->dev; | 4929 | skdev->disk->driverfs_dev = &pdev->dev; |
4930 | 4930 | ||
4931 | for (i = 0; i < SKD_MAX_BARS; i++) { | 4931 | for (i = 0; i < SKD_MAX_BARS; i++) { |