]> xenbits.xensource.com Git - libvirt.git/commit
storage: Clean up return value checking
authorJohn Ferlan <jferlan@redhat.com>
Fri, 13 Jan 2017 12:34:03 +0000 (07:34 -0500)
committerJohn Ferlan <jferlan@redhat.com>
Sat, 14 Jan 2017 15:13:05 +0000 (10:13 -0500)
commitf462f9ad6e0730a8a98b8da385afa497b0a1671e
tree3b27bbaa12ede2a662747110a4dd8fb01d3232f2
parentd1f5dfc416b28793c454b3204600bc9ad944e473
storage: Clean up return value checking

Rather than special casing the VIR_STORAGE_BLKID_PROBE_UNKNOWN after
calling virStorageBackendBLKIDFindPart, just allow the switch statement
handle setting ret = -2.
src/storage/storage_backend.c