Commit da731edb authored by Ricardo Silva's avatar Ricardo Silva Committed by Mauro Carvalho Chehab

[media] lirc_zilog: Fix unbalanced braces around if/else

Fix all checkpatch reported issues for:

 * CHECK: "braces {} should be used on all arms of this statement".
 * CHECK: "Unbalanced braces around else statement".

Make sure all if/else statements are balanced in terms of braces. Most
cases in code are, but a few were left unbalanced, so put them all
consistent with the recommended style.
Signed-off-by: default avatarRicardo Silva <rjpdasilva@gmail.com>
Signed-off-by: default avatarSean Young <sean@mess.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent d44e07c7
...@@ -545,9 +545,9 @@ static int get_key_data(unsigned char *buf, ...@@ -545,9 +545,9 @@ static int get_key_data(unsigned char *buf,
if (!read_uint32(&data, tx_data->endp, &i)) if (!read_uint32(&data, tx_data->endp, &i))
goto corrupt; goto corrupt;
if (i == codeset) if (i == codeset) {
break; break;
else if (codeset > i) { } else if (codeset > i) {
base = pos + 1; base = pos + 1;
--lim; --lim;
} }
...@@ -981,8 +981,9 @@ static int send_code(struct IR_tx *tx, unsigned int code, unsigned int key) ...@@ -981,8 +981,9 @@ static int send_code(struct IR_tx *tx, unsigned int code, unsigned int key)
"failed to get data for code %u, key %u -- check lircd.conf entries\n", "failed to get data for code %u, key %u -- check lircd.conf entries\n",
code, key); code, key);
return ret; return ret;
} else if (ret != 0) } else if (ret != 0) {
return ret; return ret;
}
/* Send the data block */ /* Send the data block */
ret = send_data_block(tx, data_block); ret = send_data_block(tx, data_block);
...@@ -1179,8 +1180,9 @@ static ssize_t write(struct file *filep, const char __user *buf, size_t n, ...@@ -1179,8 +1180,9 @@ static ssize_t write(struct file *filep, const char __user *buf, size_t n,
schedule_timeout((100 * HZ + 999) / 1000); schedule_timeout((100 * HZ + 999) / 1000);
tx->need_boot = 1; tx->need_boot = 1;
++failures; ++failures;
} else } else {
i += sizeof(int); i += sizeof(int);
}
} }
/* Release i2c bus */ /* Release i2c bus */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment