u_char *bdata, int count)
 {
        u_char          *ptr, *ptr1, new_f2;
-       int             total, maxlen, new_z2;
+       int             maxlen, new_z2;
        struct zt       *zp;
 
        if ((bch->debug & DEBUG_HW_BCHANNEL) && !(bch->debug & DEBUG_HW_BFIFO))
                        printk(KERN_WARNING "HFCPCI: receive out of memory\n");
                        return;
                }
-               total = count;
                count -= 3;
                ptr = skb_put(bch->rx_skb, count);
 
 ph_state_nt(struct dchannel *dch)
 {
        struct hfc_pci  *hc = dch->hw;
-       u_char  val;
 
        if (dch->debug)
                printk(KERN_DEBUG "%s: NT newstate %x\n",
                        hc->hw.int_m1 &= ~HFCPCI_INTS_TIMER;
                        Write_hfc(hc, HFCPCI_INT_M1, hc->hw.int_m1);
                        /* Clear already pending ints */
-                       val = Read_hfc(hc, HFCPCI_INT_S1);
+                       (void) Read_hfc(hc, HFCPCI_INT_S1);
                        Write_hfc(hc, HFCPCI_STATES, 4 | HFCPCI_LOAD_STATE);
                        udelay(10);
                        Write_hfc(hc, HFCPCI_STATES, 4);