diff options
author | Luo Jiaxing <[email protected]> | 2021-04-08 20:56:33 +0800 |
---|---|---|
committer | Martin K. Petersen <[email protected]> | 2021-04-12 23:21:26 -0400 |
commit | fa5ac2beabadc2ef5eaae0f99407e708bd5dbd66 (patch) | |
tree | 5b2e91ff75ea54ea777b29921f707b80ee319dd8 | |
parent | 8a23dbc600895694b7deb4302b735f2b8d274a5d (diff) |
scsi: pm8001: Clean up open braces
checkpatch reports the following:
ERROR: that open brace { should be on the previous line
+static struct error_fw flash_error_table[] =
+{
Fix a couple of instances of misplaced open bracket.
Link: https://lore.kernel.org/r/[email protected]
Acked-by: Jack Wang <[email protected]>
Signed-off-by: Luo Jiaxing <[email protected]>
Signed-off-by: Jianqin Xie <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
-rw-r--r-- | drivers/scsi/pm8001/pm8001_ctl.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/scsi/pm8001/pm8001_ctl.c b/drivers/scsi/pm8001/pm8001_ctl.c index 8c1711e2d5bb..26e340edb0b3 100644 --- a/drivers/scsi/pm8001/pm8001_ctl.c +++ b/drivers/scsi/pm8001/pm8001_ctl.c @@ -645,8 +645,7 @@ struct flash_command { int code; }; -static struct flash_command flash_command_table[] = -{ +static const struct flash_command flash_command_table[] = { {"set_nvmd", FLASH_CMD_SET_NVMD}, {"update", FLASH_CMD_UPDATE}, {"", FLASH_CMD_NONE} /* Last entry should be NULL. */ @@ -657,8 +656,7 @@ struct error_fw { int err_code; }; -static struct error_fw flash_error_table[] = -{ +static const struct error_fw flash_error_table[] = { {"Failed to open fw image file", FAIL_OPEN_BIOS_FILE}, {"image header mismatch", FLASH_UPDATE_HDR_ERR}, {"image offset mismatch", FLASH_UPDATE_OFFSET_ERR}, |