From: Federico Vaga Date: Tue, 18 Jul 2017 06:32:42 +0000 (+0200) Subject: drivers/fmc: remove unused variable X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8e12381bd7637dcf61a0503b566d5d9ab5b5e1b3;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git drivers/fmc: remove unused variable Signed-off-by: Federico Vaga Tested-by: Pat Riehecky Acked-by: Alessandro Rubini Signed-off-by: Greg Kroah-Hartman --- 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;