]> xenbits.xensource.com Git - libvirt.git/commit
nodedev: Make use of the compile-time missing enum in switch error
authorErik Skultety <eskultet@redhat.com>
Fri, 24 Feb 2017 09:26:42 +0000 (10:26 +0100)
committerErik Skultety <eskultet@redhat.com>
Mon, 24 Apr 2017 10:37:37 +0000 (12:37 +0200)
commit364c912cf384d2fb7575ba2f71a041297210e0e2
treefbd28d037f07e86a55919dc016c45a945a2aec04
parentab5bb6f3465aa8608cdf8e7b7bbeda8500bada17
nodedev: Make use of the compile-time missing enum in switch error

So udevGetDeviceDetails was one those functions using an enum in a
switch, but since it had a 'default' case, compiler didn't warn about an
unhandled enum. Moreover, the error about an unsupported device type
reported in the default case is unnecessary, since by the time we get
there, udevGetDeviceType (which was called before) already made sure
that any unrecognized device types had been handled properly.

Signed-off-by: Erik Skultety <eskultet@redhat.com>
src/node_device/node_device_udev.c