diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2021-10-01 16:01:47 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2021-10-01 16:38:35 +0200 |
| commit | cc80db955d0551c2456692da6176530dd27e08ed (patch) | |
| tree | 52eb201e3fb5af9168db095fbd5fcebaf2961d9d /executor/common_linux.h | |
| parent | 1d849ab4d892af13a249f75628790b47e42b7c74 (diff) | |
executor: check for single-line compound statements
Historically the code base does not use single-line compound statements
({} around single-line blocks). But there are few precedents creeped into
already. Add a check to keep the code base consistent.
Diffstat (limited to 'executor/common_linux.h')
| -rw-r--r-- | executor/common_linux.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/executor/common_linux.h b/executor/common_linux.h index d80883729..972376165 100644 --- a/executor/common_linux.h +++ b/executor/common_linux.h @@ -2512,9 +2512,8 @@ static bool process_command_pkt(int fd, char* buf, ssize_t buf_size) { struct hci_command_hdr* hdr = (struct hci_command_hdr*)buf; if (buf_size < (ssize_t)sizeof(struct hci_command_hdr) || - hdr->plen != buf_size - sizeof(struct hci_command_hdr)) { + hdr->plen != buf_size - sizeof(struct hci_command_hdr)) failmsg("process_command_pkt: invalid size", "suze=%zx", buf_size); - } switch (hdr->opcode) { case HCI_OP_WRITE_SCAN_ENABLE: { |
