[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1443531652-8348-1-git-send-email-colin.king@canonical.com>
Date: Tue, 29 Sep 2015 14:00:52 +0100
From: Colin King <colin.king@...onical.com>
To: Alessandro Rubini <rubini@...dd.com>
Cc: linux-kernel@...r.kernel.org
Subject: [PATCH] FMC: remove unused integer len and dead assignment
From: Colin Ian King <colin.king@...onical.com>
static analysis using clang's scan-build detected a dead
assignment to len which can be removed.
Signed-off-by: Colin Ian King <colin.king@...onical.com>
---
drivers/fmc/fru-parse.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/fmc/fru-parse.c b/drivers/fmc/fru-parse.c
index cb46263..4094146 100644
--- a/drivers/fmc/fru-parse.c
+++ b/drivers/fmc/fru-parse.c
@@ -31,12 +31,10 @@ static char *__fru_alloc_get_tl(struct fru_common_header *header, int nr)
{
struct fru_type_length *tl;
char *res;
- int len;
tl = __fru_get_board_tl(header, nr);
if (!tl)
return NULL;
- len = fru_strlen(tl);
res = fru_alloc(fru_strlen(tl) + 1);
if (!res)
return NULL;
--
2.5.0
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists