mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-15 15:15:47 +00:00
staging: wlan-ng remove redundant conditional
We exit the above loop either if curroff >= (HFA384x_PDA_LEN_MAX / 2 - 1) or if we found the END marker in the element beyond the current one. The first case is checked for in the preceding if statement, therefore the second if statement is redundant and can be removed. Signed-off-by: Tillmann Heidsieck <theidsieck@leenox.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
4ccb726c72
commit
c739c987c1
1 changed files with 2 additions and 4 deletions
|
@ -631,10 +631,8 @@ static int mkpdrlist(struct pda *pda)
|
|||
curroff, pda->nrec);
|
||||
return 1;
|
||||
}
|
||||
if (le16_to_cpu(pda16[curroff + 1]) == HFA384x_PDR_END_OF_PDA) {
|
||||
pda->rec[pda->nrec] = (hfa384x_pdrec_t *) &(pda16[curroff]);
|
||||
(pda->nrec)++;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue