From: Michael Brown Date: Wed, 16 Mar 2011 18:35:57 +0000 (+0000) Subject: [phantom] Remove unused variable in phantom_dmesg() X-Git-Tag: v1.20.1~2238 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=070100b21d2319477fe349829fed9b1e6796f5b8;p=thirdparty%2Fipxe.git [phantom] Remove unused variable in phantom_dmesg() Reported-by: Ralph Giles Tested-by: Ralph Giles Signed-off-by: Michael Brown --- diff --git a/src/drivers/net/phantom/phantom.c b/src/drivers/net/phantom/phantom.c index 87ade7e34..1060103c7 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",