[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <3a84214b4eb753fc3a2e18ae76f2f9bcba22cad9.1498838809.git.riehecky@fnal.gov>
Date: Fri, 30 Jun 2017 11:15:02 -0500
From: Pat Riehecky <riehecky@...l.gov>
To: <linux-kernel@...r.kernel.org>
CC: <rubini@...dd.com>, <drivers_other@...nel-bugs.osdl.org>,
<gregkh@...uxfoundation.org>, <federico.vaga@...n.ch>,
Pat Riehecky <riehecky@...l.gov>
Subject: [PATCH 1/5] drivers/fmc: remove unused variable
Signed-off-by: Federico Vaga <federico.vaga@...n.ch>
---
drivers/fmc/fru-parse.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/fmc/fru-parse.c b/drivers/fmc/fru-parse.c
index cb46263..eb21480 100644
--- a/drivers/fmc/fru-parse.c
+++ b/drivers/fmc/fru-parse.c
@@ -31,12 +31,11 @@ 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;
--
1.8.3.1
Powered by blists - more mailing lists