Skip to content

Commit

Permalink
drivers/fmc: remove unused variable
Browse files Browse the repository at this point in the history
Signed-off-by: Federico Vaga <federico.vaga@cern.ch>
Tested-by: Pat Riehecky <riehecky@fnal.gov>
Acked-by: Alessandro Rubini <rubini@gnudd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Federico Vaga authored and Greg Kroah-Hartman committed Aug 28, 2017
1 parent 02729d1 commit 8e12381
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/fmc/fru-parse.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8e12381

Please sign in to comment.