staging: gdm72xx: Removed commented-out code
authorMichalis Pappas <mpappas@fastmail.fm>
Fri, 9 May 2014 10:08:26 +0000 (18:08 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 May 2014 19:12:52 +0000 (12:12 -0700)
Signed-off-by: Michalis Pappas <mpappas@fastmail.fm>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/gdm72xx/gdm_qos.h
drivers/staging/gdm72xx/gdm_wimax.c
drivers/staging/gdm72xx/gdm_wimax.h
drivers/staging/gdm72xx/usb_boot.c

index 8f18119d22a9e5218fe5813eae279b0ea2b7d4ef..6543cff2a8765aac6879b88c055266331cf59aad 100644 (file)
 #define        IEEE802_1QVLANID                0x10
 
 struct gdm_wimax_csr_s {
-       /*      union{
-               U16 all;
-               struct _CS_CLASSIFIER_RULE_ENABLE{
-                       IPTypeOfService:1,
-                       Protocol:1,
-                       IPMaskedSrcAddress:1,
-                       IPMaskedDstAddress:1,
-                       ProtocolSrcPortRange:1,
-                       ProtocolDstPortRange:1,
-                       DstMacAddr:1,
-                       SrcMacAddr:1,
-                       Ethertype:1,
-                       IEEE802_1DUserPriority:1,
-                       IEEE802_1QVLANID:1,
-                       Reserved:5;
-               } fields;
-       } */
        BOOLEAN         enabled;
        u32             SFID;
        u8              qos_buf_count;
index 814d2e4d6db2a338bae11ae6ba0cd84ddb082214..3ccb0838a391b05afbe77f7067a931dabbeeba0f 100644 (file)
@@ -862,10 +862,6 @@ static void prepare_rx_complete(void *arg, void *data, int len)
                        netdev_err(nic->netdev,
                                   "get_prepared_info failed(%d)\n", ret);
                gdm_wimax_rcv_with_cb(nic, prepare_rx_complete, nic);
-               #if 0
-               /* Re-prepare WiMax device */
-               gdm_wimax_prepare_device(nic->netdev);
-               #endif
        }
 }
 
index 3013bdbff8fdd5a72367e372588db9e479772687..55212f55efd7ecbb176ccb25824ea4377555beca 100644 (file)
 
 #define DRIVER_VERSION         "3.2.3"
 
-/*#define ETH_P_IP     0x0800 */
-/*#define ETH_P_ARP    0x0806 */
-/*#define ETH_P_IPV6   0x86DD */
-
 #define H2L(x)         __cpu_to_le16(x)
 #define L2H(x)         __le16_to_cpu(x)
 #define DH2L(x)                __cpu_to_le32(x)
@@ -62,8 +58,6 @@ struct nic {
 
 };
 
-/*#define LOOPBACK_TEST */
-
 int register_wimax_device(struct phy_dev *phy_dev, struct device *pdev);
 int gdm_wimax_send_tx(struct sk_buff *skb, struct net_device *dev);
 void unregister_wimax_device(struct phy_dev *phy_dev);
index 0d45eb680be51ff23bed9ba853d0cbf0c1479656..8518a5a67872ecfb82d43e018ce5b8324b4295c5 100644 (file)
@@ -169,14 +169,7 @@ int usb_boot(struct usb_device *usbdev, u16 pid)
        memcpy(&hdr, firm->data, sizeof(hdr));
 
        array_le32_to_cpu((u32 *)&hdr, 19);
-#if 0
-       if (hdr.magic_code != 0x10767fff) {
-               dev_err(&usbdev->dev, "Invalid magic code 0x%08x\n",
-                       hdr.magic_code);
-               ret = -EINVAL;
-               goto out;
-       }
-#endif
+
        if (hdr.count > MAX_IMG_CNT) {
                dev_err(&usbdev->dev, "Too many images. %d\n", hdr.count);
                ret = -EINVAL;
@@ -201,14 +194,6 @@ int usb_boot(struct usb_device *usbdev, u16 pid)
                memcpy(&fw_info, firm->data + pos, sizeof(fw_info));
 
                array_le32_to_cpu((u32 *)&fw_info, 8);
-#if 0
-               if ((fw_info.id & 0xfffff000) != 0x10767000) {
-                       dev_err(&usbdev->dev, "Invalid FW id. 0x%08x\n",
-                               fw_info.id);
-                       ret = -EIO;
-                       goto out;
-               }
-#endif
 
                if ((fw_info.id & 0xffff) != pid)
                        continue;