Skip to content

Commit cb2aa7f

Browse files
committed
more cleanup
1 parent f650ba7 commit cb2aa7f

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

src/ds/d400/d400-factory.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1191,14 +1191,6 @@ namespace librealsense
11911191
bool const register_device_notifications = true;
11921192

11931193
auto pid = _group.uvc_devices.front().pid;
1194-
auto mi = _group.uvc_devices.front().mi;
1195-
std::string unique_id = _group.uvc_devices.front().unique_id;
1196-
std::string device_path = _group.uvc_devices.front().device_path;
1197-
std::string serial = _group.uvc_devices.front().serial;
1198-
1199-
uint32_t uvc_capabilities = _group.uvc_devices.front().uvc_capabilities;
1200-
bool has_metadata_node = _group.uvc_devices.front().has_metadata_node;
1201-
std::string metadata_node_id = _group.uvc_devices.front().metadata_node_id;;
12021194

12031195
switch(pid)
12041196
{

src/linux/backend-v4l2.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -828,6 +828,8 @@ namespace librealsense
828828
fmtdesc.index++;
829829
}
830830

831+
::close(fd);
832+
831833
return false;
832834
}
833835

0 commit comments

Comments
 (0)