| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Copyright (C) 2014 STMicroelectronics SAS. All rights reserved. |
|---|
| 3 | | - * |
|---|
| 4 | | - * This program is free software; you can redistribute it and/or modify it |
|---|
| 5 | | - * under the terms and conditions of the GNU General Public License, |
|---|
| 6 | | - * version 2, as published by the Free Software Foundation. |
|---|
| 7 | | - * |
|---|
| 8 | | - * This program is distributed in the hope that it will be useful, |
|---|
| 9 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 10 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 11 | | - * GNU General Public License for more details. |
|---|
| 12 | | - * |
|---|
| 13 | | - * You should have received a copy of the GNU General Public License |
|---|
| 14 | | - * along with this program; if not, see <http://www.gnu.org/licenses/>. |
|---|
| 15 | 4 | */ |
|---|
| 16 | 5 | |
|---|
| 17 | 6 | #include <net/nfc/hci.h> |
|---|
| .. | .. |
|---|
| 77 | 66 | u8 bsi; |
|---|
| 78 | 67 | u8 bri; |
|---|
| 79 | 68 | u8 ppi; |
|---|
| 80 | | - u8 gbi[0]; |
|---|
| 69 | + u8 gbi[]; |
|---|
| 81 | 70 | } __packed; |
|---|
| 82 | 71 | |
|---|
| 83 | 72 | struct st21nfca_atr_res { |
|---|
| .. | .. |
|---|
| 90 | 79 | u8 bri; |
|---|
| 91 | 80 | u8 to; |
|---|
| 92 | 81 | u8 ppi; |
|---|
| 93 | | - u8 gbi[0]; |
|---|
| 82 | + u8 gbi[]; |
|---|
| 94 | 83 | } __packed; |
|---|
| 95 | 84 | |
|---|
| 96 | 85 | struct st21nfca_psl_req { |
|---|
| .. | .. |
|---|
| 402 | 391 | default: |
|---|
| 403 | 392 | return 1; |
|---|
| 404 | 393 | } |
|---|
| 394 | + break; |
|---|
| 405 | 395 | default: |
|---|
| 406 | 396 | return 1; |
|---|
| 407 | 397 | } |
|---|
| .. | .. |
|---|
| 621 | 611 | switch (ST21NFCA_NFC_DEP_PFB_TYPE(dep_res->pfb)) { |
|---|
| 622 | 612 | case ST21NFCA_NFC_DEP_PFB_ACK_NACK_PDU: |
|---|
| 623 | 613 | pr_err("Received a ACK/NACK PDU\n"); |
|---|
| 614 | + fallthrough; |
|---|
| 624 | 615 | case ST21NFCA_NFC_DEP_PFB_I_PDU: |
|---|
| 625 | 616 | info->dep_info.curr_nfc_dep_pni = |
|---|
| 626 | 617 | ST21NFCA_NFC_DEP_PFB_PNI(dep_res->pfb + 1); |
|---|