summaryrefslogtreecommitdiffstats
path: root/virt
diff options
context:
space:
mode:
authorDong Jia Shi <bjsdjshi@linux.vnet.ibm.com>2017-04-12 11:08:16 +0200
committerCornelia Huck <cornelia.huck@de.ibm.com>2017-04-12 12:34:17 +0200
commit129cc19a94513081e9250323cd57e12ed48b3613 (patch)
treedaccaeb012b298ebeec12ba54ea53cc0254e9ce1 /virt
parentvfio: ccw: remove unnecessary NULL checks of a pointer (diff)
downloadlinux-129cc19a94513081e9250323cd57e12ed48b3613.tar.xz
linux-129cc19a94513081e9250323cd57e12ed48b3613.zip
vfio: ccw: improve error handling for vfio_ccw_mdev_remove
When vfio_ccw_mdev_reset fails during the remove process of the mdev, the current implementation simply returns. The failure indicates that the subchannel device is in a NOT_OPER state, thus the right thing to do should be removing the mdev. While we are at here, reverse the condition check to make the code more concise and readable. Signed-off-by: Dong Jia Shi <bjsdjshi@linux.vnet.ibm.com> Message-Id: <20170412090816.79108-3-bjsdjshi@linux.vnet.ibm.com> Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions