staging: wlan-ng remove unnessecary variable
authorTillmann Heidsieck <theidsieck@leenox.de>
Wed, 23 Sep 2015 20:07:55 +0000 (22:07 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Sep 2015 02:19:27 +0000 (04:19 +0200)
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>
drivers/staging/wlan-ng/prism2fw.c

index f5b97273164de5a7f5422e37f81ca47719052e4b..8fc80df0b53ef59735f9ff0417522efb0d4f2d46 100644 (file)
@@ -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;
 }
 
 /*----------------------------------------------------------------