Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
1. Comment scope changed.
2. A check removed
  • Loading branch information
Tamir91 committed Feb 8, 2024
1 parent a05ca9c commit f9ea7ff
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
3 changes: 1 addition & 2 deletions src/ds/d500/d500-private.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,8 @@ namespace librealsense
throw not_implemented_exception(rsutils::string::from() << "USB device "
<< std::hex << info.pid << ":" << info.vid << std::dec << " is not supported.");
break;
}*/
}
/*
if (found)
{
devices.erase(it);
Expand Down
3 changes: 0 additions & 3 deletions src/linux/backend-hid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -687,9 +687,6 @@ namespace librealsense
auto raw_data_size = channel_size*hid_buf_len;

std::vector<uint8_t> raw_data(raw_data_size);

if( _fd < 0 )
throw invalid_value_exception( "_id can't be negative value" );

auto read_size = read(_fd, raw_data.data(), raw_data_size);
while(read_size > 0)
Expand Down

0 comments on commit f9ea7ff

Please sign in to comment.