mirror of
https://github.com/torvalds/linux.git
synced 2026-01-25 15:03:52 +08:00
media: vgxy61: Replace nested min() with single min3()
Use min3() macro instead of nesting min() to simplify the return statement. Signed-off-by: Qasim Ijaz <qasdev00@gmail.com> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
This commit is contained in:
@@ -892,8 +892,8 @@ static u32 vgxy61_get_expo_long_max(struct vgxy61_dev *sensor,
|
||||
third_rot_max_expo = (sensor->frame_length / 71) * short_expo_ratio;
|
||||
|
||||
/* Take the minimum from all rules */
|
||||
return min(min(first_rot_max_expo, second_rot_max_expo),
|
||||
third_rot_max_expo);
|
||||
return min3(first_rot_max_expo, second_rot_max_expo,
|
||||
third_rot_max_expo);
|
||||
}
|
||||
|
||||
static int vgxy61_update_exposure(struct vgxy61_dev *sensor, u16 new_expo_long,
|
||||
|
||||
Reference in New Issue
Block a user