VServer 1.9.2 (patch-2.6.8.1-vs1.9.2.diff)
[linux-2.6.git] / drivers / sbus / dvma.c
index f15a301..c095308 100644 (file)
@@ -29,7 +29,7 @@ void __init init_one_dvma(struct sbus_dma *dma, int num_dma)
 {
        printk("dma%d: ", num_dma);
        
-       dma->next = 0;
+       dma->next = NULL;
        dma->running = 0;      /* No transfers going on as of yet */
        dma->allocated = 0;    /* No one has allocated us yet */
        switch(sbus_readl(dma->regs + DMA_CSR)&DMA_DEVICE_ID) {
@@ -121,7 +121,6 @@ void __init dvma_init(struct sbus_bus *sbus)
 void __init sun4_dvma_init(void)
 {
        struct sbus_dma *dma;
-       struct sbus_dma *dchain;
        struct resource r;
 
        if(sun4_dma_physaddr) {