]> err.no Git - linux-2.6/blobdiff - drivers/char/rio/riotable.c
sdio: add sdio_f0_readb() and sdio_f0_writeb()
[linux-2.6] / drivers / char / rio / riotable.c
index 7e988357326e3a907e892c8ea554ce573cb6d2bb..991119c9f473ef81a8f8691be7860b52af3bd38d 100644 (file)
@@ -863,8 +863,7 @@ int RIOReMapPorts(struct rio_info *p, struct Host *HostP, struct Map *HostMapP)
                if (PortP->TxRingBuffer)
                        memset(PortP->TxRingBuffer, 0, p->RIOBufferSize);
                else if (p->RIOBufferSize) {
-                       PortP->TxRingBuffer = kmalloc(p->RIOBufferSize, GFP_KERNEL);
-                       memset(PortP->TxRingBuffer, 0, p->RIOBufferSize);
+                       PortP->TxRingBuffer = kzalloc(p->RIOBufferSize, GFP_KERNEL);
                }
                PortP->TxBufferOut = 0;
                PortP->TxBufferIn = 0;