Skip to content

Commit

Permalink
V4L/DVB (13477): v4l2-subdev: remove unnecessary check
Browse files Browse the repository at this point in the history
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Hans Verkuil authored and Mauro Carvalho Chehab committed Dec 5, 2009
1 parent 57f902d commit dbc8e34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/media/v4l2-subdev.h
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ static inline void v4l2_subdev_init(struct v4l2_subdev *sd,
Example: err = v4l2_subdev_call(sd, core, g_chip_ident, &chip);
*/
#define v4l2_subdev_call(sd, o, f, args...) \
(!(sd) ? -ENODEV : (((sd) && (sd)->ops->o && (sd)->ops->o->f) ? \
(!(sd) ? -ENODEV : (((sd)->ops->o && (sd)->ops->o->f) ? \
(sd)->ops->o->f((sd) , ##args) : -ENOIOCTLCMD))

/* Send a notification to v4l2_device. */
Expand Down

0 comments on commit dbc8e34

Please sign in to comment.