From: Marc Gonzalez <marc.w.gonzalez@free.fr>
To: Harish Bandi <c-hbandi@codeaurora.org>
Cc: MSM <linux-arm-msm@vger.kernel.org>,
LKML <linux-kernel@vger.kernel.org>,
Matthias Kaehlcke <mka@chromium.org>
Subject: Re: [PATCH v4 1/2] Bluetooth: hci_qca: Added support for WCN3998
Date: Mon, 25 Mar 2019 12:49:48 +0100 [thread overview]
Message-ID: <e17eb2d2-8d32-70c6-32f9-435671233bfc@free.fr> (raw)
In-Reply-To: <1553513491-25763-2-git-send-email-c-hbandi@codeaurora.org>
On 25/03/2019 12:31, Harish Bandi wrote:
> +bool is_qca_soc_type_wcn399x_family(enum qca_btsoc_type soc_type)
> +{
> + if ((soc_type == QCA_WCN3990) || (soc_type == QCA_WCN3998))
^ ^
spurious white-space here as well
> + return true;
> +
> + return false;
> +}
(Apologies for the bike-shed)
I don't know what the kernel coding-style says about this, but for
functions returning bool, isn't it better to write
return $BOOLEAN_EXPRESSION;
instead of
if ($BOOLEAN_EXPRESSION)
return true;
return false;
i.e.
bool is_qca_soc_type_wcn399x_family(enum qca_btsoc_type soc_type)
{
return soc_type == QCA_WCN3990 || soc_type == QCA_WCN3998;
}
Regards.
next prev parent reply other threads:[~2019-03-25 11:49 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-25 11:31 [PATCH v4 0/2] Enable Bluetooth functionality " Harish Bandi
2019-03-25 11:31 ` [PATCH v4 1/2] Bluetooth: hci_qca: Added support " Harish Bandi
2019-03-25 11:49 ` Marc Gonzalez [this message]
2019-03-25 11:31 ` [PATCH v4 2/2] dt-bindings: net: bluetooth: Add device tree bindings for QTI chip WCN3998 Harish Bandi
2019-03-25 11:48 ` Marcel Holtmann
2019-03-25 11:36 [PATCH v4 0/2] Enable Bluetooth functionality for WCN3998 Harish Bandi
2019-03-25 11:36 ` [PATCH v4 1/2] Bluetooth: hci_qca: Added support " Harish Bandi
2019-03-25 16:21 ` Matthias Kaehlcke
2019-03-26 9:53 ` c-hbandi
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=e17eb2d2-8d32-70c6-32f9-435671233bfc@free.fr \
--to=marc.w.gonzalez@free.fr \
--cc=c-hbandi@codeaurora.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mka@chromium.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
all inboxes | Powered by JetHome®