drivers/fmc: remove unused variable

Signed-off-by: Federico Vaga <[email protected]>
Tested-by: Pat Riehecky <[email protected]>
Acked-by: Alessandro Rubini <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
Federico Vaga 2017-07-18 08:32:42 +02:00 • committed by Greg Kroah-Hartman
commit 8e12381bd7

View file

@ -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;