mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
NFC: st21nfca: Fix scripts/checkpatch.pl warnings "Missing a blank line after declarations"
Fixing scripts/checkpatch.pl warning "Missing a blank line after declarations" in: - st21nfca.c: - check_presence after fwi variable declaration. - get_frame_size after len variable declaration. - st21nfca_hci_i2c_repack after "i, j, r, size" variable declaration. - st21nfca_dep.c st21nfca_tx_work after skb pointer declaration. Signed-off-by: Christophe Ricard <christophe-h.ricard@st.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:
parent
6ae3ed1c52
commit
3e6df9191a
3 changed files with 4 additions and 0 deletions
|
@ -271,6 +271,7 @@ static int st21nfca_hci_i2c_write(void *phy_id, struct sk_buff *skb)
|
||||||
static int get_frame_size(u8 *buf, int buflen)
|
static int get_frame_size(u8 *buf, int buflen)
|
||||||
{
|
{
|
||||||
int len = 0;
|
int len = 0;
|
||||||
|
|
||||||
if (buf[len + 1] == ST21NFCA_SOF_EOF)
|
if (buf[len + 1] == ST21NFCA_SOF_EOF)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
@ -311,6 +312,7 @@ static int check_crc(u8 *buf, int buflen)
|
||||||
static int st21nfca_hci_i2c_repack(struct sk_buff *skb)
|
static int st21nfca_hci_i2c_repack(struct sk_buff *skb)
|
||||||
{
|
{
|
||||||
int i, j, r, size;
|
int i, j, r, size;
|
||||||
|
|
||||||
if (skb->len < 1 || (skb->len > 1 && skb->data[1] != 0))
|
if (skb->len < 1 || (skb->len > 1 && skb->data[1] != 0))
|
||||||
return -EBADMSG;
|
return -EBADMSG;
|
||||||
|
|
||||||
|
|
|
@ -790,6 +790,7 @@ static int st21nfca_hci_check_presence(struct nfc_hci_dev *hdev,
|
||||||
struct nfc_target *target)
|
struct nfc_target *target)
|
||||||
{
|
{
|
||||||
u8 fwi = 0x11;
|
u8 fwi = 0x11;
|
||||||
|
|
||||||
switch (target->hci_reader_gate) {
|
switch (target->hci_reader_gate) {
|
||||||
case NFC_HCI_RF_READER_A_GATE:
|
case NFC_HCI_RF_READER_A_GATE:
|
||||||
case NFC_HCI_RF_READER_B_GATE:
|
case NFC_HCI_RF_READER_B_GATE:
|
||||||
|
|
|
@ -121,6 +121,7 @@ static void st21nfca_tx_work(struct work_struct *work)
|
||||||
|
|
||||||
struct nfc_dev *dev;
|
struct nfc_dev *dev;
|
||||||
struct sk_buff *skb;
|
struct sk_buff *skb;
|
||||||
|
|
||||||
if (info) {
|
if (info) {
|
||||||
dev = info->hdev->ndev;
|
dev = info->hdev->ndev;
|
||||||
skb = info->dep_info.tx_pending;
|
skb = info->dep_info.tx_pending;
|
||||||
|
|
Loading…
Reference in a new issue