Skip to content

Commit

Permalink
media: v4l2: Use FIELD_SIZEOF directly
Browse files Browse the repository at this point in the history
It's more clear  to use FIELD_SIZEOF instead of its implementation.

Signed-off-by: zhong jiang <[email protected]>
Acked-by: Sakari Ailus <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
  • Loading branch information
xiongzhongjiang authored and mchehab committed Nov 10, 2019
1 parent 7204e06 commit 40ee752
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/v4l2-core/v4l2-ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -2652,7 +2652,7 @@ struct v4l2_ioctl_info {
/* Zero struct from after the field to the end */
#define INFO_FL_CLEAR(v4l2_struct, field) \
((offsetof(struct v4l2_struct, field) + \
sizeof(((struct v4l2_struct *)0)->field)) << 16)
FIELD_SIZEOF(struct v4l2_struct, field)) << 16)
#define INFO_FL_CLEAR_MASK (_IOC_SIZEMASK << 16)

#define DEFINE_V4L_STUB_FUNC(_vidioc) \
Expand Down

0 comments on commit 40ee752

Please sign in to comment.