From 070100b21d2319477fe349829fed9b1e6796f5b8 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Wed, 16 Mar 2011 18:35:57 +0000 Subject: [PATCH] [phantom] Remove unused variable in phantom_dmesg() Reported-by: Ralph Giles Tested-by: Ralph Giles Signed-off-by: Michael Brown --- src/drivers/net/phantom/phantom.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/drivers/net/phantom/phantom.c b/src/drivers/net/phantom/phantom.c index 87ade7e3..1060103c 100644 --- a/src/drivers/net/phantom/phantom.c +++ b/src/drivers/net/phantom/phantom.c @@ -476,7 +476,6 @@ static int phantom_dmesg ( struct phantom_nic *phantom, unsigned int log, unsigned int max_lines ) { uint32_t head; uint32_t tail; - uint32_t len; uint32_t sig; uint32_t offset; int byte; @@ -487,7 +486,6 @@ static int phantom_dmesg ( struct phantom_nic *phantom, unsigned int log, /* Locate log */ head = phantom_readl ( phantom, UNM_CAM_RAM_DMESG_HEAD ( log ) ); - len = phantom_readl ( phantom, UNM_CAM_RAM_DMESG_LEN ( log ) ); tail = phantom_readl ( phantom, UNM_CAM_RAM_DMESG_TAIL ( log ) ); sig = phantom_readl ( phantom, UNM_CAM_RAM_DMESG_SIG ( log ) ); DBGC ( phantom, "Phantom %p firmware dmesg buffer %d (%08x-%08x)\n",