mirror of
https://github.com/torvalds/linux.git
synced 2024-10-27 07:16:27 +00:00
[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: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
This commit is contained in:
parent
1957f0d71c
commit
1bfa6e0d1f
|
@ -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; \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user