]> git.ipfire.org Git - thirdparty/libvirt.git/commit
nodedev: remove unnecessary checks for NULL cmd
authorJonathon Jongsma <jjongsma@redhat.com>
Wed, 21 Apr 2021 15:47:43 +0000 (10:47 -0500)
committerJonathon Jongsma <jjongsma@redhat.com>
Mon, 26 Apr 2021 17:24:22 +0000 (12:24 -0500)
commit68580a517624040be764e0b3d58f3d174d94fdf5
tree3552e292368d06da5be7fb6702d3a91567834402
parent2d847765d289115d65c15203922f52a33de6c0be
nodedev: remove unnecessary checks for NULL cmd

virCommandRun() already handles the case where the cmd argument is NULL,
so there's no need for the caller to check. Make all callers consistent
and remove unnecessary NULL checks.

Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/node_device/node_device_driver.c