diff options
author | Guennadi Liakhovetski <g.liakhovetski@gmx.de> | 2013-04-18 17:35:22 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2013-10-31 02:28:32 -0400 |
commit | 1bfa6e0d1f7f42ea52c79051f027dbcf8f123e41 (patch) | |
tree | 81f031bcf05dfd397229aa76c0d44bc352b986cf /include/media | |
parent | 1957f0d71c5a6dc8c6f2435ec477ec777d080603 (diff) |
[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>
Diffstat (limited to 'include/media')
-rw-r--r-- | include/media/v4l2-subdev.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/media/v4l2-subdev.h b/include/media/v4l2-subdev.h index bfda0fe9aeb0..46768eed7464 100644 --- a/include/media/v4l2-subdev.h +++ b/include/media/v4l2-subdev.h | |||
@@ -622,8 +622,8 @@ struct v4l2_subdev_fh { | |||
622 | v4l2_subdev_get_try_##fun_name(struct v4l2_subdev_fh *fh, \ | 622 | v4l2_subdev_get_try_##fun_name(struct v4l2_subdev_fh *fh, \ |
623 | unsigned int pad) \ | 623 | unsigned int pad) \ |
624 | { \ | 624 | { \ |
625 | BUG_ON(unlikely(pad >= vdev_to_v4l2_subdev( \ | 625 | BUG_ON(pad >= vdev_to_v4l2_subdev( \ |
626 | fh->vfh.vdev)->entity.num_pads)); \ | 626 | fh->vfh.vdev)->entity.num_pads); \ |
627 | return &fh->pad[pad].field_name; \ | 627 | return &fh->pad[pad].field_name; \ |
628 | } | 628 | } |
629 | 629 | ||