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: Ricardo Silva <rjpdasilva@gmail.com>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
                if (!read_uint32(&data, tx_data->endp, &i))
                        goto corrupt;
 
-               if (i == codeset)
+               if (i == codeset) {
                        break;
-               else if (codeset > i) {
+               } else if (codeset > i) {
                        base = pos + 1;
                        --lim;
                }
                        "failed to get data for code %u, key %u -- check lircd.conf entries\n",
                        code, key);
                return ret;
-       } else if (ret != 0)
+       } else if (ret != 0) {
                return ret;
+       }
 
        /* Send the data block */
        ret = send_data_block(tx, data_block);
                        schedule_timeout((100 * HZ + 999) / 1000);
                        tx->need_boot = 1;
                        ++failures;
-               } else
+               } else {
                        i += sizeof(int);
+               }
        }
 
        /* Release i2c bus */