We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9a8446 commit 6a56625Copy full SHA for 6a56625
drivers/staging/media/tegra-video/tegra20.c
@@ -317,13 +317,8 @@ static void tegra20_channel_queue_setup(struct tegra_vi_channel *chan)
317
chan->addr_offset_v = chan->addr_offset_u + stride * height / 4;
318
319
/* For YVU420, we swap the locations of the U and V planes. */
320
- if (chan->format.pixelformat == V4L2_PIX_FMT_YVU420) {
321
- unsigned long temp;
322
-
323
- temp = chan->addr_offset_u;
324
- chan->addr_offset_u = chan->addr_offset_v;
325
- chan->addr_offset_v = temp;
326
- }
+ if (chan->format.pixelformat == V4L2_PIX_FMT_YVU420)
+ swap(chan->addr_offset_u, chan->addr_offset_v);
327
328
chan->start_offset_u = chan->addr_offset_u;
329
chan->start_offset_v = chan->addr_offset_v;
0 commit comments