[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:
Guennadi Liakhovetski 2013-04-18 18:35:22 -03:00 committed by Mauro Carvalho Chehab
parent 1957f0d71c
commit 1bfa6e0d1f
1 changed files with 2 additions and 2 deletions

View File

@ -622,8 +622,8 @@ struct v4l2_subdev_fh {
v4l2_subdev_get_try_##fun_name(struct v4l2_subdev_fh *fh, \
unsigned int pad) \
{ \
BUG_ON(unlikely(pad >= vdev_to_v4l2_subdev( \
fh->vfh.vdev)->entity.num_pads)); \
BUG_ON(pad >= vdev_to_v4l2_subdev( \
fh->vfh.vdev)->entity.num_pads); \
return &fh->pad[pad].field_name; \
}