media: Staging:media:imx Fix multiple assignments in a line
authorJanani Sankara Babu <jananis37@gmail.com>
Tue, 29 May 2018 23:08:22 +0000 (19:08 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Thu, 28 Jun 2018 10:47:06 +0000 (06:47 -0400)
This patch solves multiple assignments warning shown by checkpatch
script.

Signed-off-by: Janani Sankara Babu <jananis37@gmail.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/staging/media/imx/imx-media-csi.c

index 95d7805..06af76d 100644 (file)
@@ -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);