Skip to content

Commit

Permalink
media: imx: fix boolreturn.cocci warning:
Browse files Browse the repository at this point in the history
Fix following boolreturn.cocci warning:
./drivers/staging/media/imx/imx-media-csi.c:153:9-10: WARNING:
 return of 0/1 in function 'requires_passthrough' with return
type bool.

Signed-off-by: Guo Zhengkui <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
  • Loading branch information
Guo Zhengkui authored and mchehab committed Nov 30, 2021
1 parent 0de2412 commit 3fa2382
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/media/imx/imx-media-csi.c
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ static inline bool requires_passthrough(struct v4l2_fwnode_endpoint *ep,
const struct imx_media_pixfmt *incc)
{
if (ep->bus_type == V4L2_MBUS_BT656) // including BT.1120
return 0;
return false;

return incc->bayer || is_parallel_16bit_bus(ep) ||
(is_parallel_bus(ep) &&
Expand Down

0 comments on commit 3fa2382

Please sign in to comment.