public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Sakari Ailus <sakari.ailus@iki.fi>
Cc: linux-media@vger.kernel.org, prabhakar.csengg@gmail.com
Subject: Re: [PATCH 1/3] smiapp: Clean up smiapp_get_pdata()
Date: Wed, 11 Mar 2015 20:40:25 +0200	[thread overview]
Message-ID: <2399074.CESEE9G7DY@avalon> (raw)
In-Reply-To: <1425950282-30548-2-git-send-email-sakari.ailus@iki.fi>

Hi Sakari,

Thank you for the patch.

On Tuesday 10 March 2015 03:18:00 Sakari Ailus wrote:
> Don't set rval when it's not used (the function returns a pointer to struct
> smiapp_platform_data).
> 
> Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi>

Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>

> ---
>  drivers/media/i2c/smiapp/smiapp-core.c |    5 +----
>  1 file changed, 1 insertion(+), 4 deletions(-)
> 
> diff --git a/drivers/media/i2c/smiapp/smiapp-core.c
> b/drivers/media/i2c/smiapp/smiapp-core.c index b1f566b..565a00c 100644
> --- a/drivers/media/i2c/smiapp/smiapp-core.c
> +++ b/drivers/media/i2c/smiapp/smiapp-core.c
> @@ -2988,10 +2988,8 @@ static struct smiapp_platform_data
> *smiapp_get_pdata(struct device *dev) return NULL;
> 
>  	pdata = devm_kzalloc(dev, sizeof(*pdata), GFP_KERNEL);
> -	if (!pdata) {
> -		rval = -ENOMEM;
> +	if (!pdata)
>  		goto out_err;
> -	}
> 
>  	v4l2_of_parse_endpoint(ep, &bus_cfg);
> 
> @@ -3001,7 +2999,6 @@ static struct smiapp_platform_data
> *smiapp_get_pdata(struct device *dev) break;
>  		/* FIXME: add CCP2 support. */
>  	default:
> -		rval = -EINVAL;
>  		goto out_err;
>  	}

-- 
Regards,

Laurent Pinchart


  reply	other threads:[~2015-03-11 18:40 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-10  1:17 [PATCH 0/3] Add link-frequencies to struct v4l2_of_endpoint Sakari Ailus
2015-03-10  1:18 ` [PATCH 1/3] smiapp: Clean up smiapp_get_pdata() Sakari Ailus
2015-03-11 18:40   ` Laurent Pinchart [this message]
2015-03-11 22:24   ` Lad, Prabhakar
2015-03-11 22:38     ` Lad, Prabhakar
2015-03-10  1:18 ` [PATCH 2/3] smiapp: Read link-frequencies property from the endpoint node Sakari Ailus
2015-03-11 18:41   ` Laurent Pinchart
2015-03-11 22:25   ` Lad, Prabhakar
2015-03-11 22:38     ` Lad, Prabhakar
2015-03-10  1:18 ` [PATCH 3/3] v4l: of: Add link-frequencies array to struct v4l2_of_endpoint Sakari Ailus
2015-03-11 22:22   ` Lad, Prabhakar
2015-03-12 20:49     ` [PATCH v1.1 " Sakari Ailus
2015-03-15 17:15       ` Guennadi Liakhovetski
2015-03-15 23:16         ` Sakari Ailus

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=2399074.CESEE9G7DY@avalon \
    --to=laurent.pinchart@ideasonboard.com \
    --cc=linux-media@vger.kernel.org \
    --cc=prabhakar.csengg@gmail.com \
    --cc=sakari.ailus@iki.fi \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox