50 lines
1.8 KiB
Diff
50 lines
1.8 KiB
Diff
From: Sameeh Jubran <sameehj@amazon.com>
|
|
Date: Mon, 3 Jun 2019 17:43:22 +0300
|
|
Subject: [PATCH] net: ena: arrange ena_probe() function variables in reverse
|
|
christmas tree
|
|
Origin: https://git.kernel.org/linus/83b9240428a66da3c8e24e719b985d533cf58067
|
|
Bug-Debian: https://bugs.debian.org/941291
|
|
|
|
Reverse christmas tree arrangement is when strings are written from longer
|
|
to shorter with each line. Most of our functions are abiding this
|
|
arrangement but this function does not.
|
|
|
|
In this commit we arrange the variables of ena_probe() in reverse christmas
|
|
tree.
|
|
|
|
Signed-off-by: Arthur Kiyanovski <akiyano@amazon.com>
|
|
Signed-off-by: Sameeh Jubran <sameehj@amazon.com>
|
|
Signed-off-by: David S. Miller <davem@davemloft.net>
|
|
---
|
|
drivers/net/ethernet/amazon/ena/ena_netdev.c | 12 ++++++------
|
|
1 file changed, 6 insertions(+), 6 deletions(-)
|
|
|
|
Index: linux/drivers/net/ethernet/amazon/ena/ena_netdev.c
|
|
===================================================================
|
|
--- linux.orig/drivers/net/ethernet/amazon/ena/ena_netdev.c
|
|
+++ linux/drivers/net/ethernet/amazon/ena/ena_netdev.c
|
|
@@ -3274,17 +3274,17 @@ static int ena_calc_queue_size(struct pc
|
|
static int ena_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
|
|
{
|
|
struct ena_com_dev_get_features_ctx get_feat_ctx;
|
|
- static int version_printed;
|
|
- struct net_device *netdev;
|
|
- struct ena_adapter *adapter;
|
|
struct ena_llq_configurations llq_config;
|
|
struct ena_com_dev *ena_dev = NULL;
|
|
- char *queue_type_str;
|
|
- static int adapters_found;
|
|
+ struct ena_adapter *adapter;
|
|
+ static int version_printed;
|
|
int io_queue_num, bars, rc;
|
|
- int queue_size;
|
|
+ struct net_device *netdev;
|
|
+ static int adapters_found;
|
|
+ char *queue_type_str;
|
|
u16 tx_sgl_size = 0;
|
|
u16 rx_sgl_size = 0;
|
|
+ int queue_size;
|
|
bool wd_state;
|
|
|
|
dev_dbg(&pdev->dev, "%s\n", __func__);
|