Commit b04cdf57 authored by Alexandre Courbot's avatar Alexandre Courbot Committed by Commit Bot

media/gpu/v4l2device: fix clang-tidy warnings

Quick and easy fixes reported by clang-tidy.

BUG=None
TEST=video.DecodeAccel.h264 passes on Kukui.

Change-Id: Id4f54a7c29cbf17ae10e2f4e289e95edf81d5a4e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2421995
Commit-Queue: Fritz Koenig <frkoenig@chromium.org>
Reviewed-by: default avatarFritz Koenig <frkoenig@chromium.org>
Cr-Commit-Position: refs/heads/master@{#809456}
parent e2b5abcc
...@@ -198,7 +198,7 @@ void* V4L2Buffer::GetPlaneMapping(const size_t plane) { ...@@ -198,7 +198,7 @@ void* V4L2Buffer::GetPlaneMapping(const size_t plane) {
return nullptr; return nullptr;
} }
p = device_->Mmap(NULL, v4l2_buffer_.m.planes[plane].length, p = device_->Mmap(nullptr, v4l2_buffer_.m.planes[plane].length,
PROT_READ | PROT_WRITE, MAP_SHARED, PROT_READ | PROT_WRITE, MAP_SHARED,
v4l2_buffer_.m.planes[plane].m.mem_offset); v4l2_buffer_.m.planes[plane].m.mem_offset);
if (p == MAP_FAILED) { if (p == MAP_FAILED) {
...@@ -1335,7 +1335,7 @@ V4L2Device::V4L2Device() { ...@@ -1335,7 +1335,7 @@ V4L2Device::V4L2Device() {
DETACH_FROM_SEQUENCE(client_sequence_checker_); DETACH_FROM_SEQUENCE(client_sequence_checker_);
} }
V4L2Device::~V4L2Device() {} V4L2Device::~V4L2Device() = default;
scoped_refptr<V4L2Queue> V4L2Device::GetQueue(enum v4l2_buf_type type) { scoped_refptr<V4L2Queue> V4L2Device::GetQueue(enum v4l2_buf_type type) {
DCHECK_CALLED_ON_VALID_SEQUENCE(client_sequence_checker_); DCHECK_CALLED_ON_VALID_SEQUENCE(client_sequence_checker_);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment