]> git.ipfire.org Git - thirdparty/libvirt.git/commit
nodedev: Use switch for virNodeDeviceObjHasCap and virNodeDeviceCapMatch
authorJohn Ferlan <jferlan@redhat.com>
Thu, 25 May 2017 19:43:45 +0000 (15:43 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Sat, 3 Jun 2017 12:34:34 +0000 (08:34 -0400)
commit944b8de83ee7abfbf9015a5f4d2b679b7522340f
tree0438d386c4b351c1194691ae5798db4740f3b217
parent51ed8907a3f65e7b94842f8107fe711473912ef6
nodedev: Use switch for virNodeDeviceObjHasCap and virNodeDeviceCapMatch

In order to ensure that whenever something is added to virNodeDevCapType
that both functions are considered for processing of a new capability,
change the if-then-else construct into a switch statement.

Signed-off-by: John Ferlan <jferlan@redhat.com>
src/conf/virnodedeviceobj.c