mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 06:05:27 +00:00
nwfilter: drop dead code
Commit cb022152
went overboard and introduced a dead conditional
while trying to get rid of a potential NULL dereference.
* src/nwfilter/nwfilter_dhcpsnoop.c (virNWFilterSnoopReqNew):
Remove redundant conditional.
This commit is contained in:
parent
7794e02c56
commit
89cf363061
@ -573,7 +573,7 @@ virNWFilterSnoopReqNew(const char *ifkey)
|
||||
{
|
||||
virNWFilterSnoopReqPtr req;
|
||||
|
||||
if (ifkey == NULL || (ifkey && (strlen(ifkey) != VIR_IFKEY_LEN - 1))) {
|
||||
if (ifkey == NULL || strlen(ifkey) != VIR_IFKEY_LEN - 1) {
|
||||
virReportError(VIR_ERR_INTERNAL_ERROR,
|
||||
_("virNWFilterSnoopReqNew called with invalid "
|
||||
"key \"%s\" (%zu)"),
|
||||
|
Loading…
Reference in New Issue
Block a user