net/virtio: replace magic number with PCI constant
authorZhiyong Yang <zhiyong.yang@intel.com>
Thu, 3 Aug 2017 01:21:50 +0000 (09:21 +0800)
committerYuanhan Liu <yliu@fridaylinux.org>
Tue, 10 Oct 2017 13:48:53 +0000 (15:48 +0200)
commit0373ab9bfca60cbc62b2f5dc9a914b5ece63ba31
treea7a5e6d66c41705d18d9e62b6377603eb4d34ebe
parent9ff41aa7a0640eb80a37ed38fe4f1d78fb31d796
net/virtio: replace magic number with PCI constant

To use macro instead of magic number in order to enhance code
readability.

Signed-off-by: Zhiyong Yang <zhiyong.yang@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Acked-by: Yuanhan Liu <yliu@fridaylinux.org>
drivers/net/virtio/virtio_pci.c