]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - arch/powerpc/platforms/ps3/mm.c
Merge tag 'powerpc-4.17-1' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux
[linux.git] / arch / powerpc / platforms / ps3 / mm.c
index 7f870ec29daf0675e366daff6552096de03adb41..8c7009d001d96aba4766a2f590ea3011347b9181 100644 (file)
@@ -524,8 +524,7 @@ static int dma_sb_map_pages(struct ps3_dma_region *r, unsigned long phys_addr,
        int result;
        struct dma_chunk *c;
 
-       c = kzalloc(sizeof(struct dma_chunk), GFP_ATOMIC);
-
+       c = kzalloc(sizeof(*c), GFP_ATOMIC);
        if (!c) {
                result = -ENOMEM;
                goto fail_alloc;
@@ -570,8 +569,7 @@ static int dma_ioc0_map_pages(struct ps3_dma_region *r, unsigned long phys_addr,
 
        DBG(KERN_ERR "%s: phy=%#lx, lpar%#lx, len=%#lx\n", __func__,
            phys_addr, ps3_mm_phys_to_lpar(phys_addr), len);
-       c = kzalloc(sizeof(struct dma_chunk), GFP_ATOMIC);
-
+       c = kzalloc(sizeof(*c), GFP_ATOMIC);
        if (!c) {
                result = -ENOMEM;
                goto fail_alloc;