Commit 1e6b55ee authored by Sony Chacko's avatar Sony Chacko Committed by David S. Miller

qlcnic: fix coding style issues in qlcnic_minidump.c

Fix coding style violations in qlcnic_minidump.c
Signed-off-by: default avatarSony Chacko <sony.chacko@qlogic.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 58634e74
...@@ -115,7 +115,7 @@ struct qlcnic_dump_entry { ...@@ -115,7 +115,7 @@ struct qlcnic_dump_entry {
} region; } region;
} __packed; } __packed;
enum op_codes { enum qlcnic_minidump_opcode {
QLCNIC_DUMP_NOP = 0, QLCNIC_DUMP_NOP = 0,
QLCNIC_DUMP_READ_CRB = 1, QLCNIC_DUMP_READ_CRB = 1,
QLCNIC_DUMP_READ_MUX = 2, QLCNIC_DUMP_READ_MUX = 2,
...@@ -139,7 +139,7 @@ enum op_codes { ...@@ -139,7 +139,7 @@ enum op_codes {
}; };
struct qlcnic_dump_operations { struct qlcnic_dump_operations {
enum op_codes opcode; enum qlcnic_minidump_opcode opcode;
u32 (*handler)(struct qlcnic_adapter *, struct qlcnic_dump_entry *, u32 (*handler)(struct qlcnic_adapter *, struct qlcnic_dump_entry *,
__le32 *); __le32 *);
}; };
...@@ -533,7 +533,7 @@ qlcnic_valid_dump_entry(struct device *dev, struct qlcnic_dump_entry *entry, ...@@ -533,7 +533,7 @@ qlcnic_valid_dump_entry(struct device *dev, struct qlcnic_dump_entry *entry,
int ret = 1; int ret = 1;
if (size != entry->hdr.cap_size) { if (size != entry->hdr.cap_size) {
dev_info(dev, dev_info(dev,
"Invalidate dump, Type:%d\tMask:%d\tSize:%dCap_size:%d\n", "Invalid dump, Type:%d\tMask:%d\tSize:%dCap_size:%d\n",
entry->hdr.type, entry->hdr.mask, size, entry->hdr.cap_size); entry->hdr.type, entry->hdr.mask, size, entry->hdr.cap_size);
dev_info(dev, "Aborting further dump capture\n"); dev_info(dev, "Aborting further dump capture\n");
ret = 0; ret = 0;
...@@ -568,7 +568,7 @@ int qlcnic_dump_fw(struct qlcnic_adapter *adapter) ...@@ -568,7 +568,7 @@ int qlcnic_dump_fw(struct qlcnic_adapter *adapter)
if (!fw_dump->data) { if (!fw_dump->data) {
dev_info(&adapter->pdev->dev, dev_info(&adapter->pdev->dev,
"Unable to allocate (%d KB) for fw dump\n", "Unable to allocate (%d KB) for fw dump\n",
dump_size/1024); dump_size / 1024);
return -ENOMEM; return -ENOMEM;
} }
buffer = fw_dump->data; buffer = fw_dump->data;
......
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