linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Gustavo Padovan <padovan@profusion.mobi>
To: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH 3/5] serial: use port->msg to track rfcomm connection procedure
Date: Fri, 19 Aug 2011 15:56:20 -0300	[thread overview]
Message-ID: <20110819185620.GC24573@joana> (raw)
In-Reply-To: <CABBYNZ+x_FjfZApEVTWNwacp_+0=aBLBW8wGA=-QJby5LcX5mQ@mail.gmail.com>

Hi Luiz,

* Luiz Augusto von Dentz <luiz.dentz@gmail.com> [2011-08-19 10:13:16 +0300]:

> Hi Gustavo,
> 
> On Thu, Aug 18, 2011 at 11:10 PM, Gustavo F. Padovan
> <padovan@profusion.mobi> wrote:
> > From: "Gustavo F. Padovan" <padovan@profusion.mobi>
> >
> > Use port->msg has the same effect of using port->io.
> > ---
> >  serial/port.c |    2 +-
> >  1 files changed, 1 insertions(+), 1 deletions(-)
> >
> > diff --git a/serial/port.c b/serial/port.c
> > index 3f041a6..bc4b4ea 100644
> > --- a/serial/port.c
> > +++ b/serial/port.c
> > @@ -149,7 +149,7 @@ static int port_release(struct serial_port *port)
> >        int err = 0;
> >
> >        if (port->id < 0) {
> > -               if (port->io) {
> > +               if (port->msg) {
> >                        g_io_channel_shutdown(port->io, TRUE, NULL);
> >                        g_io_channel_unref(port->io);
> >                        port->io = NULL;
> 
> They may have the same effect but I would maintain the current one
> since we are only using port->io and changing it to port->msg may be
> unclear when reading the code without knowing the behavior.

Yes, but I want to change the behavior of port->io since I don't to create
another struct member to mantain the IO channel.
Maybe we can keep it here, I'll check the code.

	Gustavo

  reply	other threads:[~2011-08-19 18:56 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-18 20:09 [PATCH 1/5] serial: add Serial.ConnectFD() Gustavo F. Padovan
2011-08-18 20:10 ` [PATCH 2/5] serial: fix unref of dbus message Gustavo F. Padovan
2011-08-18 20:10   ` [PATCH 3/5] serial: use port->msg to track rfcomm connection procedure Gustavo F. Padovan
2011-08-18 20:10     ` [PATCH 4/5] serial: Add port->sender Gustavo F. Padovan
2011-08-18 20:10       ` [PATCH 5/5] serial: Add support to Disconnect fd passing connections Gustavo F. Padovan
2011-08-19  7:34         ` Luiz Augusto von Dentz
2011-08-19  7:20       ` [PATCH 4/5] serial: Add port->sender Luiz Augusto von Dentz
2011-08-19  7:13     ` [PATCH 3/5] serial: use port->msg to track rfcomm connection procedure Luiz Augusto von Dentz
2011-08-19 18:56       ` Gustavo Padovan [this message]
2011-08-19  7:07 ` [PATCH 1/5] serial: add Serial.ConnectFD() Luiz Augusto von Dentz
2011-08-19 18:49   ` Gustavo Padovan

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=20110819185620.GC24573@joana \
    --to=padovan@profusion.mobi \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=luiz.dentz@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).