Skip to content

Commit

Permalink
Bluetooth: btmtksdio: Fixed switch and case should be at the same indent
Browse files Browse the repository at this point in the history
Switch and case where not properly aligned

Signed-off-by: Jagdish Tirumala <t.jag587@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
  • Loading branch information
Jagdish Tirumala authored and Marcel Holtmann committed Dec 18, 2020
1 parent ac40679 commit 1ca2a39
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions drivers/bluetooth/btmtksdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -442,15 +442,15 @@ static int btmtksdio_rx_packet(struct btmtksdio_dev *bdev, u16 rx_size)
}

switch ((&pkts[i])->lsize) {
case 1:
dlen = skb->data[(&pkts[i])->loff];
break;
case 2:
dlen = get_unaligned_le16(skb->data +
case 1:
dlen = skb->data[(&pkts[i])->loff];
break;
case 2:
dlen = get_unaligned_le16(skb->data +
(&pkts[i])->loff);
break;
default:
goto err_kfree_skb;
break;
default:
goto err_kfree_skb;
}

pad_size = skb->len - (&pkts[i])->hlen - dlen;
Expand Down

0 comments on commit 1ca2a39

Please sign in to comment.