Commit 8e12381b authored by Federico Vaga's avatar Federico Vaga Committed by Greg Kroah-Hartman

drivers/fmc: remove unused variable

Signed-off-by: default avatarFederico Vaga <federico.vaga@cern.ch>
Tested-by: default avatarPat Riehecky <riehecky@fnal.gov>
Acked-by: default avatarAlessandro Rubini <rubini@gnudd.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 02729d17
...@@ -31,12 +31,11 @@ static char *__fru_alloc_get_tl(struct fru_common_header *header, int nr) ...@@ -31,12 +31,11 @@ static char *__fru_alloc_get_tl(struct fru_common_header *header, int nr)
{ {
struct fru_type_length *tl; struct fru_type_length *tl;
char *res; char *res;
int len;
tl = __fru_get_board_tl(header, nr); tl = __fru_get_board_tl(header, nr);
if (!tl) if (!tl)
return NULL; return NULL;
len = fru_strlen(tl);
res = fru_alloc(fru_strlen(tl) + 1); res = fru_alloc(fru_strlen(tl) + 1);
if (!res) if (!res)
return NULL; return NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment