All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Chen, Tiejun" <tiejun.chen@intel.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: xen-devel@lists.xen.org
Subject: Re: [PATCH] xen/pci: correct comment of pci_device_detect()
Date: Wed, 20 May 2015 18:49:30 +0800	[thread overview]
Message-ID: <555C66BA.9070901@intel.com> (raw)
In-Reply-To: <555C78D7020000780007C0EC@mail.emea.novell.com>

On 2015/5/20 18:06, Jan Beulich wrote:
>>>> On 20.05.15 at 08:53, <tiejun.chen@intel.com> wrote:
>> --- a/xen/drivers/passthrough/pci.c
>> +++ b/xen/drivers/passthrough/pci.c
>> @@ -905,7 +905,7 @@ out:
>>   }
>>
>>   /*
>> - * detect pci device, return 0 if it exists, or return 0
>> + * detect pci device, return 1 if it exists, or return 0
>>    */
>>   int __init pci_device_detect(u16 seg, u8 bus, u8 dev, u8 func)
>
> The comment is pretty pointless, and could go away altogether if
> the function's return type was switched to bool_t. Care to do such

Yeah, I also consider this change initially but I'm not sure if this is 
necessary. Now I think I'd like to follow this.

> an alternative patch (including replacing some of the callers using
> == 0 on the result to use ! instead)?
>

Sure.

Thanks
Tiejun

      reply	other threads:[~2015-05-20 10:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-20  6:53 [PATCH] xen/pci: correct comment of pci_device_detect() Tiejun Chen
2015-05-20 10:06 ` Jan Beulich
2015-05-20 10:49   ` Chen, Tiejun [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=555C66BA.9070901@intel.com \
    --to=tiejun.chen@intel.com \
    --cc=JBeulich@suse.com \
    --cc=xen-devel@lists.xen.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.