Commit 5099c4c4 authored by Michael Sartain's avatar Michael Sartain Committed by Greg Kroah-Hartman

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: default avatarMichael Sartain <mikesart@fastmail.com>
Acked-by: Viresh Kumar <viresh.kumar at linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 0c380187
...@@ -217,13 +217,12 @@ int main(int argc, char *argv[]) ...@@ -217,13 +217,12 @@ int main(int argc, char *argv[])
if (argc > 2) if (argc > 2)
sscanf(argv[2], "%u", &fw_update_type); sscanf(argv[2], "%u", &fw_update_type);
if (argc > 3) { if (argc > 3)
firmware_tag = argv[3]; firmware_tag = argv[3];
} else if (!fw_update_type) { else if (!fw_update_type)
firmware_tag = FW_TAG_INT_DEFAULT; firmware_tag = FW_TAG_INT_DEFAULT;
} else { else
firmware_tag = FW_TAG_BCND_DEFAULT; firmware_tag = FW_TAG_BCND_DEFAULT;
}
if (argc > 4) if (argc > 4)
sscanf(argv[4], "%u", &fw_timeout); sscanf(argv[4], "%u", &fw_timeout);
......
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