int ccw_idx;
        unsigned long hi;
        unsigned long saveflags = 0;    /* avoids compiler warning */
-       __u16 block_len;
 
        CTCM_PR_DEBUG("Enter %s: %s, cp=%i ch=0x%p id=%s state=%s\n",
                        __func__, dev->name, smp_processor_id(), ch,
         */
        atomic_inc(&skb->users);
 
-       block_len = skb->len + TH_HEADER_LENGTH + PDU_HEADER_LENGTH;
        /*
         * IDAL support in CTCM is broken, so we have to
         * care about skb's above 2G ourselves.
 
        struct net_device *dev = rch->netdev;
        struct ctcm_priv *priv = dev->ml_priv;
        struct mpc_group *grp = priv->mpcg;
-       int rc = 0;
        struct th_sweep *header;
        struct sk_buff *sweep_skb;
        struct channel *ch  = priv->channel[CTCM_WRITE];
                CTCM_DBF_TEXT_(MPC_ERROR, CTC_DBF_ERROR,
                        "%s(%s): sweep_skb allocation ERROR\n",
                        CTCM_FUNTAIL, rch->id);
-               rc = -ENOMEM;
-                               goto done;
+               goto done;
        }
 
        header = kmalloc(sizeof(struct th_sweep), gfp_type());
 
        if (!header) {
                dev_kfree_skb_any(sweep_skb);
-               rc = -ENOMEM;
-                               goto done;
+               goto done;
        }
 
        header->th.th_seg       = 0x00 ;
        struct net_device  *dev = arg;
        struct ctcm_priv    *priv;
        struct mpc_group *grp;
-       int rc = 0;
-       struct channel *wch, *rch;
+       struct channel *wch;
 
        BUG_ON(dev == NULL);
        CTCM_PR_DEBUG("Enter %s: %s\n", __func__, dev->name);
                fsm_deltimer(&priv->restart_timer);
 
        wch = priv->channel[CTCM_WRITE];
-       rch = priv->channel[CTCM_READ];
 
        switch (grp->saved_state) {
        case MPCG_STATE_RESET:
 
        if (grp->send_qllc_disc == 1) {
                grp->send_qllc_disc = 0;
-               rc = mpc_send_qllc_discontact(dev);
+               mpc_send_qllc_discontact(dev);
        }
 
        /* DO NOT issue DEV_EVENT_STOP directly out of this code */