From 1bc5ce5df95f6366e38d509cfac3c75e4554fdd2 Mon Sep 17 00:00:00 2001 From: Alexander Gordeev Date: Wed, 19 Feb 2014 09:58:20 +0100 Subject: skd: Use unified access to skdev->msix_entries throughout the code Signed-off-by: Alexander Gordeev Cc: Jens Axboe Cc: Bartlomiej Zolnierkiewicz Cc: Kyungmin Park Cc: linux-pci@vger.kernel.org Signed-off-by: Jens Axboe --- drivers/block/skd_main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'drivers/block') diff --git a/drivers/block/skd_main.c b/drivers/block/skd_main.c index d0550ba948fa..1cd1095cf8e6 100644 --- a/drivers/block/skd_main.c +++ b/drivers/block/skd_main.c @@ -3977,8 +3977,8 @@ static int skd_acquire_msix(struct skd_device *skdev) goto msix_out; } - qentry = skdev->msix_entries; for (i = 0; i < skdev->msix_count; i++) { + qentry = &skdev->msix_entries[i]; qentry->vector = entries[i].vector; qentry->entry = entries[i].entry; qentry->rsp = NULL; @@ -3987,7 +3987,6 @@ static int skd_acquire_msix(struct skd_device *skdev) skdev->name, __func__, __LINE__, pci_name(pdev), skdev->name, i, qentry->vector, qentry->entry); - qentry++; } /* Enable MSI-X vectors for the base queue */ -- cgit v1.2.3