From: Samuel Ortiz <sameo-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
To: "Mark A. Greer" <mgreer-luAo+O/VEmrlveNOaEYElw@public.gmane.org>
Cc: Lauro Ramos Venancio
<lauro.venancio-430g2QfJUUCGglJvpFV4uA@public.gmane.org>,
Aloisio Almeida Jr
<aloisio.almeida-430g2QfJUUCGglJvpFV4uA@public.gmane.org>,
Felipe Balbi <balbi-l0cyMroinI0@public.gmane.org>,
Erick Macias <emacias-l0cyMroinI0@public.gmane.org>,
Thierry Escande
<thierry.escande-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>,
linux-wireless-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-nfc-hn68Rpc1hR1g9hUCZPvPmw@public.gmane.org,
devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH 2/3] NFC: trf7970a: Add ISO/IEC 15693 Support
Date: Fri, 21 Feb 2014 02:00:44 +0100 [thread overview]
Message-ID: <20140221010044.GT18868@zurbaran> (raw)
In-Reply-To: <1391206631-9862-3-git-send-email-mgreer-luAo+O/VEmrlveNOaEYElw@public.gmane.org>
Hi Mark,
Just one nitpick here:
> +static int trf7970a_is_iso15693_write_or_lock(u8 cmd)
> +{
> + int ret;
> +
> + switch (cmd) {
> + case ISO15693_CMD_WRITE_SINGLE_BLOCK:
> + case ISO15693_CMD_LOCK_BLOCK:
> + case ISO15693_CMD_WRITE_MULTIPLE_BLOCK:
> + case ISO15693_CMD_WRITE_AFI:
> + case ISO15693_CMD_LOCK_AFI:
> + case ISO15693_CMD_WRITE_DSFID:
> + case ISO15693_CMD_LOCK_DSFID:
> + ret = 1;
return 1;
and return 0 on the default case.
Simpler code and you don't need the ret variable.
Cheers,
Samuel.
--
Intel Open Source Technology Centre
http://oss.intel.com/
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2014-02-21 1:00 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-31 22:17 [PATCH 0/3] NFC: trf7970a: Add driver with NFC Type 2 and Type V Support Mark A. Greer
[not found] ` <1391206631-9862-1-git-send-email-mgreer-luAo+O/VEmrlveNOaEYElw@public.gmane.org>
2014-01-31 22:17 ` [PATCH 1/3] NFC: trf7970a: Add driver with ISO/IEC 14443 Type 2 Tag Support Mark A. Greer
[not found] ` <1391206631-9862-2-git-send-email-mgreer-luAo+O/VEmrlveNOaEYElw@public.gmane.org>
2014-02-21 0:50 ` Samuel Ortiz
2014-02-21 1:20 ` Felipe Balbi
2014-02-26 21:53 ` Mark A. Greer
[not found] ` <20140226215309.GA21867-luAo+O/VEmrlveNOaEYElw@public.gmane.org>
2014-03-03 18:11 ` Mark A. Greer
[not found] ` <20140303181112.GA32605-luAo+O/VEmrlveNOaEYElw@public.gmane.org>
2014-03-03 20:37 ` Samuel Ortiz
2014-03-05 0:19 ` Mark A. Greer
[not found] ` <20140305001943.GA29983-luAo+O/VEmrlveNOaEYElw@public.gmane.org>
2014-03-05 12:36 ` Samuel Ortiz
2014-01-31 22:17 ` [PATCH 2/3] NFC: trf7970a: Add ISO/IEC 15693 Support Mark A. Greer
[not found] ` <1391206631-9862-3-git-send-email-mgreer-luAo+O/VEmrlveNOaEYElw@public.gmane.org>
2014-02-21 1:00 ` Samuel Ortiz [this message]
2014-02-26 21:53 ` Mark A. Greer
2014-01-31 22:17 ` [PATCH 3/3] NFC: trf7970a: Add DTS Documentation Mark A. Greer
[not found] ` <1391206631-9862-4-git-send-email-mgreer-luAo+O/VEmrlveNOaEYElw@public.gmane.org>
2014-02-21 1:04 ` Samuel Ortiz
2014-02-26 21:54 ` Mark A. Greer
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=20140221010044.GT18868@zurbaran \
--to=sameo-vuqaysv1563yd54fqh9/ca@public.gmane.org \
--cc=aloisio.almeida-430g2QfJUUCGglJvpFV4uA@public.gmane.org \
--cc=balbi-l0cyMroinI0@public.gmane.org \
--cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=emacias-l0cyMroinI0@public.gmane.org \
--cc=lauro.venancio-430g2QfJUUCGglJvpFV4uA@public.gmane.org \
--cc=linux-nfc-hn68Rpc1hR1g9hUCZPvPmw@public.gmane.org \
--cc=linux-wireless-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=mgreer-luAo+O/VEmrlveNOaEYElw@public.gmane.org \
--cc=thierry.escande-VuQAYsv1563Yd54FQh9/CA@public.gmane.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;
as well as URLs for NNTP newsgroup(s).