diff options
author | YueHaibing <yuehaibing@huawei.com> | 2018-10-11 07:37:07 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-10-11 10:05:58 -0700 |
commit | df92062e495a0ffcebe8c14af5309aa5a145bc8a (patch) | |
tree | 2bb551674449a7d113fe114c8ef013bced899d95 /drivers/net | |
parent | 60f8e67d980a5c4d3520378141f4d422f5f7231b (diff) | |
download | linux-df92062e495a0ffcebe8c14af5309aa5a145bc8a.tar.bz2 |
octeontx2-af: Remove set but not used variable 'dev'
Fixes gcc '-Wunused-but-set-variable' warning:
drivers/net/ethernet/marvell/octeontx2/af/cgx.c: In function 'cgx_fwi_event_handler':
drivers/net/ethernet/marvell/octeontx2/af/cgx.c:257:17: warning:
variable 'dev' set but not used [-Wunused-but-set-variable]
It never be used since introduction in
commit 1463f382f58d ("octeontx2-af: Add support for CGX link management")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/ethernet/marvell/octeontx2/af/cgx.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/ethernet/marvell/octeontx2/af/cgx.c b/drivers/net/ethernet/marvell/octeontx2/af/cgx.c index f290b1da6acf..2cf8e402c31e 100644 --- a/drivers/net/ethernet/marvell/octeontx2/af/cgx.c +++ b/drivers/net/ethernet/marvell/octeontx2/af/cgx.c @@ -254,7 +254,6 @@ static inline bool cgx_event_is_linkevent(u64 event) static irqreturn_t cgx_fwi_event_handler(int irq, void *data) { struct lmac *lmac = data; - struct device *dev; struct cgx *cgx; u64 event; @@ -265,8 +264,6 @@ static irqreturn_t cgx_fwi_event_handler(int irq, void *data) if (!FIELD_GET(EVTREG_ACK, event)) return IRQ_NONE; - dev = &cgx->pdev->dev; - switch (FIELD_GET(EVTREG_EVT_TYPE, event)) { case CGX_EVT_CMD_RESP: /* Copy the response. Since only one command is active at a |