diff mbox series

treewide: remove pointless c_str

Message ID 20200416040652.388559-1-rosenp@gmail.com (mailing list archive)
State New, archived
Headers show
Series treewide: remove pointless c_str | expand

Commit Message

Rosen Penev April 16, 2020, 4:06 a.m. UTC
Found with clang-tidy's readability-redundant-string-cstr

Signed-off-by: Rosen Penev <rosenp@gmail.com>
---
 utils/v4l2-compliance/v4l2-compliance.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/utils/v4l2-compliance/v4l2-compliance.cpp b/utils/v4l2-compliance/v4l2-compliance.cpp
index 97b96a21..8bdbecc2 100644
--- a/utils/v4l2-compliance/v4l2-compliance.cpp
+++ b/utils/v4l2-compliance/v4l2-compliance.cpp
@@ -871,7 +871,7 @@  static std::string make_devname(const char *device, const char *devname,
 		return device;
 	if (is_media) {
 		close(media_fd);
-		return media_devname.c_str();
+		return media_devname;
 	}
 
 	media_v2_topology topology;