Skip to content

Commit

Permalink
Remove unnecessary string concatenation and clear up language referri…
Browse files Browse the repository at this point in the history
…ng to variables dev_name & video_path in linux_backend_exception call.
  • Loading branch information
ciandonovan committed Sep 20, 2023
1 parent 8174723 commit 54cd8c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/linux/backend-v4l2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,7 @@ namespace librealsense

if (std::stoi(major_string) == major(st.st_rdev) && std::stoi(minor_string) == minor(st.st_rdev))
{
dev_name = "/dev/" + name;
dev_name = path;
break;
}
}
Expand Down Expand Up @@ -704,7 +704,7 @@ namespace librealsense
std::string busnum, devnum, devpath, dev_name;
if (!get_devname_from_video_path(video_path, dev_name))
{
throw linux_backend_exception(rsutils::string::from() << "Unable to find devname for Video Path: " << video_path);
throw linux_backend_exception(rsutils::string::from() << "Unable to find dev_name from video_path: " << video_path);
}

if (!is_usb_path_valid(video_path, dev_name, busnum, devnum, devpath))
Expand Down

0 comments on commit 54cd8c5

Please sign in to comment.