From: Deepak R Varma <mh12gx2825@gmail.com>
To: Vaishali Thakkar <vthakkar@vaishalithakkar.in>
Cc: outreachy-kernel@googlegroups.com,
Steve Longerbeam <slongerbeam@gmail.com>,
Philipp Zabel <p.zabel@pengutronix.de>,
Mauro Carvalho Chehab <mchehab@kernel.org>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Shawn Guo <shawnguo@kernel.org>,
Sascha Hauer <s.hauer@pengutronix.de>,
Pengutronix Kernel Team <kernel@pengutronix.de>,
Fabio Estevam <festevam@gmail.com>,
NXP Linux Team <linux-imx@nxp.com>
Subject: Re: [Outreachy kernel] [PATCH v2 2/2] staging: media: imx: remove unnecessary variable use
Date: Tue, 13 Oct 2020 20:11:23 +0530 [thread overview]
Message-ID: <20201013144123.GA41828@ubuntu204> (raw)
In-Reply-To: <CAK-LDbJL71n+XUzaqaZ7x4Aifd316M1FTv2jPrMx01gcrn1yGg@mail.gmail.com>
On Tue, Oct 13, 2020 at 07:23:46PM +0530, Vaishali Thakkar wrote:
> On Tue, Oct 13, 2020 at 6:39 PM Deepak R Varma <mh12gx2825@gmail.com> wrote:
> >
> > Variable vc_num usage is unnecessary as it used only once. Instead, the
> > value can directly be used in place of the variable.
>
> There is something off with this commit log[e.g. missing words etc].
> Probably you can reorganize the words like 'Use of variable
> vc_num is unnecessary here because it is being used only once.
> The value can be used directly.'
>
> How did you find this? If checkpatch.pl was used for it,
> you should give it a credit in the commit log.
>
> Also, [unrelated to this change] Greg doesn't pick patches
> for drivers/staging/media so as mentioned in the
> announcement email, you should avoid sending patches
> in media subsystem during the contribution period of Outreachy
> as we can't be sure that they'll be picked up during the timeline
> of a program.
>
Thank you for the review and comments. I will update and resend the
patch.
Also, my apologies for missing the message about /media specific patches in
the announcement email. However, since I have already made the change and you
all have provided feedback, I would like to go ahead with this patch
submission. However, I will avoid any further patch for this driver set
for now.
Thank you again.
Deepak.
> > Signed-off-by: Deepak R Varma <mh12gx2825@gmail.com>
> >
> > ---
> > Changes since v1:
> > - Implement feedback from Julia to be exact with the patch description
> >
> > drivers/staging/media/imx/imx-media-csi.c | 3 +--
> > 1 file changed, 1 insertion(+), 2 deletions(-)
> >
> > diff --git a/drivers/staging/media/imx/imx-media-csi.c b/drivers/staging/media/imx/imx-media-csi.c
> > index 9320e3974d86..db77fef07654 100644
> > --- a/drivers/staging/media/imx/imx-media-csi.c
> > +++ b/drivers/staging/media/imx/imx-media-csi.c
> > @@ -1123,7 +1123,6 @@ static int csi_link_validate(struct v4l2_subdev *sd,
> > priv->upstream_ep = upstream_ep;
> > is_csi2 = !is_parallel_bus(&upstream_ep);
> > if (is_csi2) {
> > - int vc_num = 0;
> > /*
> > * NOTE! It seems the virtual channels from the mipi csi-2
> > * receiver are used only for routing by the video mux's,
> > @@ -1131,7 +1130,7 @@ static int csi_link_validate(struct v4l2_subdev *sd,
> > * enters the CSI's however, they are treated internally
> > * in the IPU as virtual channel 0.
> > */
> > - ipu_csi_set_mipi_datatype(priv->csi, vc_num,
> > + ipu_csi_set_mipi_datatype(priv->csi, 0,
> > &priv->format_mbus[CSI_SINK_PAD]);
> > }
> >
> > --
> > 2.25.1
> >
> > --
> > You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
> > To unsubscribe from this group and stop receiving emails from it, send an email to outreachy-kernel+unsubscribe@googlegroups.com.
> > To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/5fcd93b57b9232f38fd6d7bc4f685de7ed827628.1602593826.git.mh12gx2825%40gmail.com.
>
>
>
> --
> Vaishali
> http://vaishalithakkar.in/
prev parent reply other threads:[~2020-10-13 14:41 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-13 13:06 [PATCH v2 1/2] staging: media: imx: remove commented code Deepak R Varma
2020-10-13 13:08 ` [PATCH v2 2/2] staging: media: imx: remove unnecessary variable use Deepak R Varma
2020-10-13 13:53 ` [Outreachy kernel] " Vaishali Thakkar
2020-10-13 14:41 ` Deepak R Varma [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20201013144123.GA41828@ubuntu204 \
--to=mh12gx2825@gmail.com \
--cc=festevam@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=kernel@pengutronix.de \
--cc=linux-imx@nxp.com \
--cc=mchehab@kernel.org \
--cc=outreachy-kernel@googlegroups.com \
--cc=p.zabel@pengutronix.de \
--cc=s.hauer@pengutronix.de \
--cc=shawnguo@kernel.org \
--cc=slongerbeam@gmail.com \
--cc=vthakkar@vaishalithakkar.in \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.