Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

media: chips-media: wave5: Remove redundant ternary operators

For ternary operators in the form of a ? true : false, if a itself returns
a boolean result, the ternary operator can be omitted. Remove redundant
ternary operators to clean up the code.

Signed-off-by: Liao Yuanhong <liaoyuanhong@vivo.com>
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>

authored by

Liao Yuanhong and committed by
Hans Verkuil
9df928c9 73d50aa9

+1 -1
+1 -1
drivers/media/platform/chips-media/wave5/wave5-vpu-enc.c
··· 543 543 if (!info) 544 544 return -EINVAL; 545 545 546 - inst->cbcr_interleave = (info->comp_planes == 2) ? true : false; 546 + inst->cbcr_interleave = info->comp_planes == 2; 547 547 548 548 switch (inst->src_fmt.pixelformat) { 549 549 case V4L2_PIX_FMT_NV21: