All of lore.kernel.org
 help / color / mirror / Atom feed
From: Julia Lawall <julia.lawall@lip6.fr>
To: Bhanusree Pola <bhanusreemahesh@gmail.com>
Cc: outreachy-kernel@googlegroups.com, Eric Anholt <eric@anholt.net>,
	 Stefan Wahren <stefan.wahren@i2se.com>,
	 Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	 Florian Fainelli <f.fainelli@gmail.com>,
	Ray Jui <rjui@broadcom.com>,
	 Scott Branden <sbranden@broadcom.com>
Subject: Re: [Outreachy kernel]
Date: Mon, 15 Oct 2018 10:59:18 +0200 (CEST)	[thread overview]
Message-ID: <alpine.DEB.2.20.1810151058410.3442@hadrien> (raw)
In-Reply-To: <20181015085307.GA15896@aakashd-VirtualBox>



On Mon, 15 Oct 2018, Bhanusree Pola wrote:

> bcm-kernel-feedback-list@broadcom.com
> Bcc:
> Subject: [Outreachy Kernel][PATCH v2] staging: bcm2835-camera: Remove 'ret'
>  variable
> Reply-To:

This didn't work out properly.  Please first send the message to yourself
to be sure it is ok, and then try again.

julia

>
> Return value to be returned without using extra variable 'ret'.
> Generated by Cocinelli semantic patch ret.cocci
> The following is the ret.cocci semantic patch used:
>
> @@
> local idexpression ret;
> expression e;
> @@
>
> -ret =
> +return
>      e;
> -return ret;
>
> Signed-off-by: Bhanusree Pola <bhanusreemahesh@gmail.com>
> ---
>
> changelog:
>
> v2: Include semantic patch used in the commit message
>
>  drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c | 4 +---
>  1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c b/drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c
> index c04bdf0..a124f51 100644
> --- a/drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c
> +++ b/drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c
> @@ -1510,7 +1510,6 @@ static int set_camera_parameters(struct vchiq_mmal_instance *instance,
>  				 struct vchiq_mmal_component *camera,
>  				 struct bm2835_mmal_dev *dev)
>  {
> -	int ret;
>  	struct mmal_parameter_camera_config cam_config = {
>  		.max_stills_w = dev->max_width,
>  		.max_stills_h = dev->max_height,
> @@ -1526,10 +1525,9 @@ static int set_camera_parameters(struct vchiq_mmal_instance *instance,
>  		.use_stc_timestamp = MMAL_PARAM_TIMESTAMP_MODE_RAW_STC
>  	};
>
> -	ret = vchiq_mmal_port_parameter_set(instance, &camera->control,
> +	return vchiq_mmal_port_parameter_set(instance, &camera->control,
>  					    MMAL_PARAMETER_CAMERA_CONFIG,
>  					    &cam_config, sizeof(cam_config));
> -	return ret;
>  }
>
>  #define MAX_SUPPORTED_ENCODINGS 20
> --
> 2.7.4
>
> --
> 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 post to this group, send email to outreachy-kernel@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/20181015085307.GA15896%40aakashd-VirtualBox.
> For more options, visit https://groups.google.com/d/optout.
>


  reply	other threads:[~2018-10-15  8:59 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-15  8:53 Bhanusree Pola
2018-10-15  8:59 ` Julia Lawall [this message]
  -- strict thread matches above, loose matches on Subject: below --
2019-10-19 19:11 evan chime
2019-10-19 19:20 ` [Outreachy kernel] Julia Lawall
2019-10-12  0:10 Jamal Shareef
2019-10-12  5:33 ` [Outreachy kernel] Julia Lawall
2017-02-16 19:41 simran singhal
2017-02-16 19:44 ` [Outreachy kernel] Julia Lawall

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=alpine.DEB.2.20.1810151058410.3442@hadrien \
    --to=julia.lawall@lip6.fr \
    --cc=bhanusreemahesh@gmail.com \
    --cc=eric@anholt.net \
    --cc=f.fainelli@gmail.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=outreachy-kernel@googlegroups.com \
    --cc=rjui@broadcom.com \
    --cc=sbranden@broadcom.com \
    --cc=stefan.wahren@i2se.com \
    /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.