summaryrefslogtreecommitdiffstats
path: root/drivers/fmc
diff options
context:
space:
mode:
authorFederico Vaga <federico.vaga@cern.ch>2017-07-18 08:32:42 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-08-28 16:24:21 +0200
commit8e12381bd7637dcf61a0503b566d5d9ab5b5e1b3 (patch)
treefd7c9943a0c4bae31c3bbefc53065d3d9f81eb17 /drivers/fmc
parentthunderbolt: Fix reset response_type (diff)
downloadlinux-8e12381bd7637dcf61a0503b566d5d9ab5b5e1b3.tar.xz
linux-8e12381bd7637dcf61a0503b566d5d9ab5b5e1b3.zip
drivers/fmc: remove unused variable
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>
Diffstat (limited to 'drivers/fmc')
-rw-r--r--drivers/fmc/fru-parse.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/fmc/fru-parse.c b/drivers/fmc/fru-parse.c
index cb46263c5da2..eb21480d399f 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;