From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: Bjorn Helgaas <bhelgaas@google.com>
Cc: Boris Ostrovsky <boris.ostrovsky@oracle.com>,
David Vrabel <david.vrabel@citrix.com>,
xen-devel@lists.xenproject.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] xen/pci: Remove unused dev_err() string
Date: Tue, 15 Apr 2014 09:03:19 -0400 [thread overview]
Message-ID: <20140415130319.GC29540@phenom.dumpdata.com> (raw)
In-Reply-To: <20140414222523.15032.99127.stgit@bhelgaas-glaptop.roam.corp.google.com>
On Mon, Apr 14, 2014 at 04:25:23PM -0600, Bjorn Helgaas wrote:
> We previously verified that "action" is either BUS_NOTIFY_ADD_DEVICE or
> BUS_NOTIFY_DEL_DEVICE, so there's no need for the default "?" case.
>
> Found by Coverity (CID 146520).
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
David, are you OK pushing this in 'devel/for-linus-3.14'?
Thanks!
>
> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
> ---
> drivers/xen/pci.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/drivers/xen/pci.c b/drivers/xen/pci.c
> index dd9c249ea311..59a25f937bd7 100644
> --- a/drivers/xen/pci.c
> +++ b/drivers/xen/pci.c
> @@ -177,8 +177,7 @@ static int xen_pci_notifier(struct notifier_block *nb,
> }
> if (r)
> dev_err(dev, "Failed to %s - passthrough or MSI/MSI-X might fail!\n",
> - action == BUS_NOTIFY_ADD_DEVICE ? "add" :
> - (action == BUS_NOTIFY_DEL_DEVICE ? "delete" : "?"));
> + action == BUS_NOTIFY_ADD_DEVICE ? "add" : "del");
> return NOTIFY_OK;
> }
>
>
next prev parent reply other threads:[~2014-04-15 13:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-14 22:25 [PATCH] xen/pci: Remove unused dev_err() string Bjorn Helgaas
2014-04-15 13:03 ` Konrad Rzeszutek Wilk [this message]
2014-04-15 13:29 ` David Vrabel
2014-04-15 15:20 ` Konrad Rzeszutek Wilk
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=20140415130319.GC29540@phenom.dumpdata.com \
--to=konrad.wilk@oracle.com \
--cc=bhelgaas@google.com \
--cc=boris.ostrovsky@oracle.com \
--cc=david.vrabel@citrix.com \
--cc=linux-kernel@vger.kernel.org \
--cc=xen-devel@lists.xenproject.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox