All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wolfram Sang <wsa@the-dreams.de>
To: Dan Carpenter <dan.carpenter@oracle.com>
Cc: Jiang Liu <jiang.liu@huawei.com>, Toshi Kani <toshi.kani@hp.com>,
	"Rafael J. Wysocki" <rafael.j.wysocki@intel.com>,
	Yinghai Lu <yinghai@kernel.org>,
	linux-i2c@vger.kernel.org, kernel-janitors@vger.kernel.org
Subject: Re: [patch] i2c-scmi: remove some bogus NULL checks
Date: Thu, 31 Oct 2013 11:57:49 +0000	[thread overview]
Message-ID: <20131031115749.GC3431@katana> (raw)
In-Reply-To: <20131019084622.GA9312@longonot.mountain>

[-- Attachment #1: Type: text/plain, Size: 319 bytes --]

On Sat, Oct 19, 2013 at 11:46:22AM +0300, Dan Carpenter wrote:
> "obj" can't be NULL here.
> 
> We already know that "pkg->package.elements" gives us a valid pointer
> so the next pointer after that is also non-NULL.
> 
> Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>

Applied to for-next, thanks!


[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

WARNING: multiple messages have this Message-ID (diff)
From: Wolfram Sang <wsa@the-dreams.de>
To: Dan Carpenter <dan.carpenter@oracle.com>
Cc: Jiang Liu <jiang.liu@huawei.com>, Toshi Kani <toshi.kani@hp.com>,
	"Rafael J. Wysocki" <rafael.j.wysocki@intel.com>,
	Yinghai Lu <yinghai@kernel.org>,
	linux-i2c@vger.kernel.org, kernel-janitors@vger.kernel.org
Subject: Re: [patch] i2c-scmi: remove some bogus NULL checks
Date: Thu, 31 Oct 2013 12:57:49 +0100	[thread overview]
Message-ID: <20131031115749.GC3431@katana> (raw)
In-Reply-To: <20131019084622.GA9312@longonot.mountain>

[-- Attachment #1: Type: text/plain, Size: 319 bytes --]

On Sat, Oct 19, 2013 at 11:46:22AM +0300, Dan Carpenter wrote:
> "obj" can't be NULL here.
> 
> We already know that "pkg->package.elements" gives us a valid pointer
> so the next pointer after that is also non-NULL.
> 
> Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>

Applied to for-next, thanks!


[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

  parent reply	other threads:[~2013-10-31 11:57 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-19  8:46 [patch] i2c-scmi: remove some bogus NULL checks Dan Carpenter
2013-10-19  8:46 ` Dan Carpenter
     [not found] ` <20131019084622.GA9312-dZEljifmRObu9KfB+GxooP8+0UxHXcjY@public.gmane.org>
2013-10-30 16:02   ` Wolfram Sang
2013-10-30 16:02     ` Wolfram Sang
2013-10-30 16:39     ` Dan Carpenter
2013-10-30 16:39       ` Dan Carpenter
2013-10-31 11:57 ` Wolfram Sang [this message]
2013-10-31 11:57   ` Wolfram Sang

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=20131031115749.GC3431@katana \
    --to=wsa@the-dreams.de \
    --cc=dan.carpenter@oracle.com \
    --cc=jiang.liu@huawei.com \
    --cc=kernel-janitors@vger.kernel.org \
    --cc=linux-i2c@vger.kernel.org \
    --cc=rafael.j.wysocki@intel.com \
    --cc=toshi.kani@hp.com \
    --cc=yinghai@kernel.org \
    /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.