diff options
author | Michael Sartain <mikesart@fastmail.com> | 2017-03-09 09:58:04 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-03-09 19:29:50 +0100 |
commit | 5099c4c4a6edca35a50d27016091f37002e86d4a (patch) | |
tree | 13f63152d6f1da3f0d2fae98bc83e8beabe61493 /drivers/staging/greybus/Documentation/firmware/firmware.c | |
parent | 0c3801875c526b16fcd4719cd728e45ed092f9dd (diff) |
staging: greybus: firmware: Remove extra braces from single line if
Fixes checkpatch warning:
braces {} are not necessary for any arm of this statement
Signed-off-by: Michael Sartain <mikesart@fastmail.com>
Acked-by: Viresh Kumar <viresh.kumar at linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/greybus/Documentation/firmware/firmware.c')
-rw-r--r-- | drivers/staging/greybus/Documentation/firmware/firmware.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/staging/greybus/Documentation/firmware/firmware.c b/drivers/staging/greybus/Documentation/firmware/firmware.c index 10ef86120815..70b7fcbba5ad 100644 --- a/drivers/staging/greybus/Documentation/firmware/firmware.c +++ b/drivers/staging/greybus/Documentation/firmware/firmware.c @@ -217,13 +217,12 @@ int main(int argc, char *argv[]) if (argc > 2) sscanf(argv[2], "%u", &fw_update_type); - if (argc > 3) { + if (argc > 3) firmware_tag = argv[3]; - } else if (!fw_update_type) { + else if (!fw_update_type) firmware_tag = FW_TAG_INT_DEFAULT; - } else { + else firmware_tag = FW_TAG_BCND_DEFAULT; - } if (argc > 4) sscanf(argv[4], "%u", &fw_timeout); |