drivers/fmc: remove unused variable
authorFederico Vaga <federico.vaga@cern.ch>
Tue, 18 Jul 2017 06:32:42 +0000 (08:32 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Aug 2017 14:24:21 +0000 (16:24 +0200)
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>
drivers/fmc/fru-parse.c

index cb46263c5da22983749b0c38c1164171270f37e2..eb21480d399f4fe7cf98ecdba89d9cfcf2e8bb16 100644 (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;