bus/pci: remove unnecessary cast
authorYunjian Wang <wangyunjian@huawei.com>
Wed, 16 Sep 2020 12:41:56 +0000 (20:41 +0800)
committerDavid Marchand <david.marchand@redhat.com>
Mon, 5 Oct 2020 08:08:57 +0000 (10:08 +0200)
commit40094b8eea31013f8df285a4ebdd7cc5e0d8e6cd
treeb1d7f7f1c3461156ebd1994c14cf3dad5da4599f
parent2a089d2d52f45bca6f179345fa3f3abe1a0e2ea9
bus/pci: remove unnecessary cast

The variables 'vfio_res->nb_maps' and 'i' are of type int. The type
casting of 'vfio_res->nb_maps' is redundant and not required.

Signed-off-by: Yunjian Wang <wangyunjian@huawei.com>
Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
drivers/bus/pci/linux/pci_vfio.c