diff options
author | Janani Sankara Babu <[email protected]> | 2018-05-29 19:08:22 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <[email protected]> | 2018-06-28 06:47:06 -0400 |
commit | 5a0996af33879c027725daa58becdf172e0f166d (patch) | |
tree | 4250abaf49c142047d2ca06495f6489fdd3bb9ac | |
parent | 854dca5053d3653394aad319e3bd70c245401f12 (diff) |
media: Staging:media:imx Fix multiple assignments in a line
This patch solves multiple assignments warning shown by checkpatch
script.
Signed-off-by: Janani Sankara Babu <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
-rw-r--r-- | drivers/staging/media/imx/imx-media-csi.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/staging/media/imx/imx-media-csi.c b/drivers/staging/media/imx/imx-media-csi.c index 95d7805f3485..06af76d31c0b 100644 --- a/drivers/staging/media/imx/imx-media-csi.c +++ b/drivers/staging/media/imx/imx-media-csi.c @@ -1192,10 +1192,12 @@ static int csi_enum_frame_size(struct v4l2_subdev *sd, } else { crop = __csi_get_crop(priv, cfg, fse->which); - fse->min_width = fse->max_width = fse->index & 1 ? + fse->min_width = fse->index & 1 ? crop->width / 2 : crop->width; - fse->min_height = fse->max_height = fse->index & 2 ? + fse->max_width = fse->min_width; + fse->min_height = fse->index & 2 ? crop->height / 2 : crop->height; + fse->max_height = fse->min_height; } mutex_unlock(&priv->lock); |