From: Guennadi Liakhovetski Date: Thu, 18 Apr 2013 21:35:22 +0000 (-0300) Subject: [media] V4L2: (cosmetic) remove redundant use of unlikely() X-Git-Tag: next-20131105~72^2~1^2~28 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=1bfa6e0d1f7f42ea52c79051f027dbcf8f123e41;p=karo-tx-linux.git [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 Signed-off-by: Mauro Carvalho Chehab --- 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 { 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; \ }