From: "Frédéric Dalleau" <frederic.dalleau@linux.intel.com>
To: Johan Hedberg <johan.hedberg@gmail.com>, linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH] Add watch for RFCOMM disconnect to HFP HF role
Date: Thu, 04 Aug 2011 15:09:31 +0200 [thread overview]
Message-ID: <4E3A9A0B.3030804@linux.intel.com> (raw)
In-Reply-To: <20110804125810.GA24323@dell>
Hi Johan,
>> + if (cond& (G_IO_ERR | G_IO_HUP)) {
>
> Since this function is only called for NVAL, ERR and HUP, do you even
> need to have this check here. Maybe you could just get rid of this
> second if-statement.
To be rigorous the test is not needed. This is more a matter of
consistency, since the code is nearly a copy paste of the existing
sco_io_cb.
If it is ok for you, I'll update both funcs.
Regards,
Frédéric
next prev parent reply other threads:[~2011-08-04 13:09 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-04 12:51 [PATCH] Add watch for RFCOMM disconnect to HFP HF role Frédéric Dalleau
2011-08-04 12:58 ` Johan Hedberg
2011-08-04 13:09 ` Frédéric Dalleau [this message]
2011-08-04 13:16 ` Johan Hedberg
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=4E3A9A0B.3030804@linux.intel.com \
--to=frederic.dalleau@linux.intel.com \
--cc=johan.hedberg@gmail.com \
--cc=linux-bluetooth@vger.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.