mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-03 20:48:08 +02:00
radv: remove dead code for master_fd close
We have never opened master_Fd at this point, so remove code to close it. Found by coverity. Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
This commit is contained in:
parent
7c04b96f03
commit
6e1d294804
1 changed files with 0 additions and 2 deletions
|
|
@ -273,8 +273,6 @@ radv_physical_device_init(struct radv_physical_device *device,
|
|||
|
||||
if (strcmp(version->name, "amdgpu")) {
|
||||
drmFreeVersion(version);
|
||||
if (master_fd != -1)
|
||||
close(master_fd);
|
||||
close(fd);
|
||||
|
||||
if (instance->debug_flags & RADV_DEBUG_STARTUP)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue