projects
/
platform
/
upstream
/
neard.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
33823d5
)
ndef: Coding style fix
author
Samuel Ortiz
<sameo@linux.intel.com>
Thu, 2 Feb 2012 17:57:34 +0000
(18:57 +0100)
committer
Samuel Ortiz
<sameo@linux.intel.com>
Thu, 2 Feb 2012 17:57:34 +0000
(18:57 +0100)
src/ndef.c
patch
|
blob
|
history
diff --git
a/src/ndef.c
b/src/ndef.c
index
22c4a5c
..
16cfb52
100644
(file)
--- a/
src/ndef.c
+++ b/
src/ndef.c
@@
-1178,13
+1178,11
@@
parse_mime_type(struct near_ndef_record *record,
if (strcmp(mime->type, "application/vnd.bluetooth.ep.oob") == 0) {
err = __near_bt_parse_oob_record(BT_MIME_V2_1,
&ndef_data[offset]);
- } else {
- if (strcmp(mime->type, "nokia.com:bt") == 0) {
+ } else if (strcmp(mime->type, "nokia.com:bt") == 0) {
err = __near_bt_parse_oob_record(BT_MIME_V2_0,
&ndef_data[offset]);
- }
- else
- err = -EOPNOTSUPP;
+ } else {
+ err = -EOPNOTSUPP;
}
if (err < 0) {