Skip to content

Commit

Permalink
more cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
gwen2018 committed Feb 5, 2025
1 parent f650ba7 commit cb2aa7f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/ds/d400/d400-factory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1191,14 +1191,6 @@ namespace librealsense
bool const register_device_notifications = true;

auto pid = _group.uvc_devices.front().pid;
auto mi = _group.uvc_devices.front().mi;
std::string unique_id = _group.uvc_devices.front().unique_id;
std::string device_path = _group.uvc_devices.front().device_path;
std::string serial = _group.uvc_devices.front().serial;

uint32_t uvc_capabilities = _group.uvc_devices.front().uvc_capabilities;
bool has_metadata_node = _group.uvc_devices.front().has_metadata_node;
std::string metadata_node_id = _group.uvc_devices.front().metadata_node_id;;

switch(pid)
{
Expand Down
2 changes: 2 additions & 0 deletions src/linux/backend-v4l2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -828,6 +828,8 @@ namespace librealsense
fmtdesc.index++;
}

::close(fd);

return false;
}

Expand Down

0 comments on commit cb2aa7f

Please sign in to comment.