]> xenbits.xensource.com Git - libvirt.git/commit
util: Make virProcessGetAffinity more readable and fix coverity warning
authorPeter Krempa <pkrempa@redhat.com>
Thu, 4 Jun 2015 12:13:15 +0000 (14:13 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 11 Jun 2015 11:59:28 +0000 (13:59 +0200)
commitb0d2e31c5fa7e61b486a0fff4ee22b898f7caf01
tree5cd8e15cae3290b384b5441c3905ba660e1d9bb8
parentb6a2639bd22671c44d6e3e0ca8c73b3b637d9e12
util: Make virProcessGetAffinity more readable and fix coverity warning

Store the cpu count in an intermediate variable and reuse it rather than
caluclating the index.

Additionally add a coverity silencing comment.
src/util/virprocess.c