From c8c1ee1835c6e70f2056bdf1eef9ed25a590abda Mon Sep 17 00:00:00 2001 From: internal Date: Tue, 7 Jun 2022 16:37:10 +0200 Subject: [PATCH] style fixes --- ddbridge/ddbridge-main.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/ddbridge/ddbridge-main.c b/ddbridge/ddbridge-main.c index 09bc6dc..fd483c2 100644 --- a/ddbridge/ddbridge-main.c +++ b/ddbridge/ddbridge-main.c @@ -339,7 +339,7 @@ static int __devinit ddb_probe(struct pci_dev *pdev, u32 min = dev->link[0].info->hw_min; dev_err(dev->dev, "Update firmware to at least version %u.%u to ensure full functionality!\n", - (min & 0xff0000) >> 16, min & 0xffff); + (min & 0xff0000) >> 16, min & 0xffff); } if (dev->link[0].info->ns_num) { @@ -350,14 +350,14 @@ static int __devinit ddb_probe(struct pci_dev *pdev, if (dev->link[0].info->type != DDB_MOD) ddbwritel(dev, 0, DMA_BASE_WRITE); - if (dev->link[0].info->type == DDB_MOD - && dev->link[0].info->version <= 1) { + if (dev->link[0].info->type == DDB_MOD && + dev->link[0].info->version <= 1) { if (ddbreadl(dev, 0x1c) == 4) dev->link[0].info = get_ddb_info(0xdd01, 0x0201, 0xdd01, 0x0004); } - if (dev->link[0].info->type == DDB_MOD - && dev->link[0].info->version == 2) { + if (dev->link[0].info->type == DDB_MOD && + dev->link[0].info->version == 2) { u32 lic = ddbreadl(dev, 0x1c) & 7; if (dev->link[0].ids.revision == 1) @@ -458,7 +458,6 @@ static const struct pci_device_id ddb_id_table[] __devinitconst = { }; MODULE_DEVICE_TABLE(pci, ddb_id_table); - static pci_ers_result_t ddb_pci_slot_reset(struct pci_dev *dev) { pr_info("pci_slot_reset\n"); @@ -498,7 +497,6 @@ static const struct pci_error_handlers ddb_error = { .resume = ddb_pci_resume, }; - static struct pci_driver ddb_pci_driver = { .name = "ddbridge", .id_table = ddb_id_table,