HV: add const qualifier for the deinit vdev op functions

This is to fix the following misra c violation:
Pointer param should be declared pointer to const. : vdev

Tracked-On: #2534
Signed-off-by: dongshen <dongsheng.x.zhang@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
dongshen
2019-03-14 14:42:56 -07:00
committed by wenlingz
parent b2b1a278f0
commit eb4f46987a
6 changed files with 9 additions and 9 deletions

View File

@@ -415,7 +415,7 @@ int32_t vmsix_init(struct pci_vdev *vdev)
* @pre vdev->vpci != NULL
* @pre vdev->vpci->vm != NULL
*/
int32_t vmsix_deinit(struct pci_vdev *vdev)
int32_t vmsix_deinit(const struct pci_vdev *vdev)
{
if (has_msix_cap(vdev)) {
if (vdev->msix.table_count != 0U) {