Skip to content

Commit 8e12381

Browse files
Federico Vagagregkh
authored andcommitted
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]>
1 parent 02729d1 commit 8e12381

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/fmc/fru-parse.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,11 @@ static char *__fru_alloc_get_tl(struct fru_common_header *header, int nr)
3131
{
3232
struct fru_type_length *tl;
3333
char *res;
34-
int len;
3534

3635
tl = __fru_get_board_tl(header, nr);
3736
if (!tl)
3837
return NULL;
39-
len = fru_strlen(tl);
38+
4039
res = fru_alloc(fru_strlen(tl) + 1);
4140
if (!res)
4241
return NULL;

0 commit comments

Comments
 (0)