mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-04 09:59:32 +00:00
staging: wlan-ng remove unnessecary variable
The result variable is not set anywhere beyond its initialization, therefore it can be remove. Signed-off-by: Tillmann Heidsieck <theidsieck@leenox.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
c739c987c1
commit
3ac8480ad6
1 changed files with 1 additions and 2 deletions
|
@ -584,7 +584,6 @@ static int mkimage(struct imgchunk *clist, unsigned int *ccnt)
|
|||
----------------------------------------------------------------*/
|
||||
static int mkpdrlist(struct pda *pda)
|
||||
{
|
||||
int result = 0;
|
||||
u16 *pda16 = (u16 *) pda->buf;
|
||||
int curroff; /* in 'words' */
|
||||
|
||||
|
@ -633,7 +632,7 @@ static int mkpdrlist(struct pda *pda)
|
|||
}
|
||||
pda->rec[pda->nrec] = (hfa384x_pdrec_t *) &(pda16[curroff]);
|
||||
(pda->nrec)++;
|
||||
return result;
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------
|
||||
|
|
Loading…
Reference in a new issue