summaryrefslogtreecommitdiffstats
path: root/drivers/staging/wlan-ng
diff options
context:
space:
mode:
authorTillmann Heidsieck2015-09-23 22:07:55 +0200
committerGreg Kroah-Hartman2015-09-29 04:19:27 +0200
commit3ac8480ad61a45c2a9e3ee003d2cf4ce37ef4795 (patch)
tree47f3133ed7491a0f5a4c99d1c9c6faa1348c8329 /drivers/staging/wlan-ng
parentstaging: wlan-ng remove redundant conditional (diff)
downloadkernel-qcow2-linux-3ac8480ad61a45c2a9e3ee003d2cf4ce37ef4795.tar.gz
kernel-qcow2-linux-3ac8480ad61a45c2a9e3ee003d2cf4ce37ef4795.tar.xz
kernel-qcow2-linux-3ac8480ad61a45c2a9e3ee003d2cf4ce37ef4795.zip
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>
Diffstat (limited to 'drivers/staging/wlan-ng')
-rw-r--r--drivers/staging/wlan-ng/prism2fw.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/staging/wlan-ng/prism2fw.c b/drivers/staging/wlan-ng/prism2fw.c
index f5b97273164d..8fc80df0b53e 100644
--- a/drivers/staging/wlan-ng/prism2fw.c
+++ b/drivers/staging/wlan-ng/prism2fw.c
@@ -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;
}
/*----------------------------------------------------------------