Staging: rt2860: Fix minor compiler warnings
authorGreg Kroah-Hartman <gregkh@suse.de>
Thu, 13 Nov 2008 23:37:21 +0000 (15:37 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 6 Jan 2009 21:52:12 +0000 (13:52 -0800)
The build is "clean" now for this driver.

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/rt2860/2860_main_dev.c
drivers/staging/rt2860/common/cmm_data.c
drivers/staging/rt2860/sta/sync.c

index d65bdbc62762f7702a38a8a61833412a99db8f15..1e38f2d1f692b9806be3473c629e7ef99cf54c8e 100644 (file)
@@ -1022,7 +1022,7 @@ BOOLEAN RT28XXNetDevInit(
        IN RTMP_ADAPTER                 *pAd)
 {
        struct pci_dev *pci_dev = (struct pci_dev *)_dev_p;
-    CHAR       *print_name;
+    const CHAR *print_name;
     ULONG      csr_addr;
 
 
index 292d34b31e17b5d41c1fb2a74acc69b2c3e9b2db..ac549011ccb95cc9f47e500636cc47c09a053480 100644 (file)
@@ -943,9 +943,6 @@ BOOLEAN RTMP_FillTxBlkInfo(
        }
 
        return TRUE;
-
-FillTxBlkErr:
-       return FALSE;
 }
 
 
index a94b4b7330e53dc268c775829a20b98e9aa29947..d196f85395cef6354ea36974d38db9f2d4d77cc1 100644 (file)
@@ -1300,8 +1300,6 @@ VOID PeerBeacon(
                                                {
                                                        if (pAd->StaCfg.Adhoc20NJoined == FALSE)
                                                        {
-                                                               UCHAR   ByteValue = 0;
-
                                                                pAd->CommonCfg.CentralChannel = pAd->CommonCfg.Channel;
 
                                                                pAd->StaCfg.Adhoc20NJoined = TRUE;