From: Tillmann Heidsieck Date: Wed, 23 Sep 2015 20:07:55 +0000 (+0200) Subject: staging: wlan-ng remove unnessecary variable X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=3ac8480ad61a45c2a9e3ee003d2cf4ce37ef4795;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: Greg Kroah-Hartman --- 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; } /*----------------------------------------------------------------