]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virNWFilterParseParamAttributes: Remove tautological `if`
authorTim Wiederhake <twiederh@redhat.com>
Wed, 14 Jul 2021 08:42:58 +0000 (10:42 +0200)
committerTim Wiederhake <twiederh@redhat.com>
Fri, 23 Jul 2021 09:27:05 +0000 (11:27 +0200)
commitec5838fc17394bee42541b539435490ee7b95ebd
tree84f61d512810b5ce77f012fa6966c73ad869ea22
parent71a2cdb8ec23a416d63684bd26da2b28408283e6
virNWFilterParseParamAttributes: Remove tautological `if`

`cur` is guaranteed to be of type `XML_ELEMENT_NODE` by using
`xmlFirstElementChild()` and `xmlNextElementSibling()`.

Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/conf/nwfilter_params.c