summary refs log tree commit diff stats
path: root/results/classifier/zero-shot/105/graphic/2031
blob: 00e262b7316840c824c3eb2b38b342e1f3f4e78a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
graphic: 0.735
device: 0.601
network: 0.510
instruction: 0.353
semantic: 0.349
other: 0.291
vnc: 0.239
socket: 0.233
KVM: 0.119
boot: 0.091
mistranslation: 0.046
assembly: 0.024

Redundant comparison
Description of problem:
The result of the function `qdev_get_hotplug_handler` is always __NULL__. That is why the comparison in the line №502 is redundant:

https://gitlab.com/qemu-project/qemu/-/blob/master/hw/core/qdev.c#L501

This code will never be executed:

https://gitlab.com/qemu-project/qemu/-/blob/master/hw/core/qdev.c#L502-L507

Found by Linux Verification Center (portal.linuxtesting.ru) with SVACE.

Author A. Voronin.