]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/staging/slicoss/slicoss.c
Staging: slicoss: use kzalloc
[linux-2.6-omap-h63xx.git] / drivers / staging / slicoss / slicoss.c
index 00390362f10ff9c8f71981bc4eb267881f573380..b8ac872e070ce1d1b605f435c9d79c1481dbb615 100644 (file)
@@ -2832,9 +2832,8 @@ static u32 slic_card_locate(struct adapter *adapter)
        }
        if (!physcard) {
                /* no structure allocated for this physical card yet */
-               physcard = kmalloc(sizeof(struct physcard *), GFP_ATOMIC);
+               physcard = kzalloc(sizeof(struct physcard *), GFP_ATOMIC);
                ASSERT(physcard);
-               memset(physcard, 0, sizeof(struct physcard *));
 
                DBG_MSG
                    ("\n%s Allocate a PHYSICALcard:\n    PHYSICAL_Card[%p]\n\