Commit 1bfa6e0d authored by Guennadi Liakhovetski's avatar Guennadi Liakhovetski Committed by Mauro Carvalho Chehab

[media] V4L2: (cosmetic) remove redundant use of unlikely()

BUG*() and WARN*() macros specify their conditions as unlikely, using
BUG_ON(unlikely(condition)) is redundant, remove it.
Signed-off-by: default avatarGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
parent 1957f0d7
...@@ -622,8 +622,8 @@ struct v4l2_subdev_fh { ...@@ -622,8 +622,8 @@ struct v4l2_subdev_fh {
v4l2_subdev_get_try_##fun_name(struct v4l2_subdev_fh *fh, \ v4l2_subdev_get_try_##fun_name(struct v4l2_subdev_fh *fh, \
unsigned int pad) \ unsigned int pad) \
{ \ { \
BUG_ON(unlikely(pad >= vdev_to_v4l2_subdev( \ BUG_ON(pad >= vdev_to_v4l2_subdev( \
fh->vfh.vdev)->entity.num_pads)); \ fh->vfh.vdev)->entity.num_pads); \
return &fh->pad[pad].field_name; \ return &fh->pad[pad].field_name; \
} }
......
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