Re: [PATCH] omapfb: Use devm_kcalloc() in vrfb_probe()

2017-05-12 Thread Geert Uytterhoeven
On Thu, May 11, 2017 at 5:22 PM, Bartlomiej Zolnierkiewicz wrote: > On Thursday, May 11, 2017 04:27:19 PM Bartlomiej Zolnierkiewicz wrote: > >> > @@ -358,11 +358,7 @@ static int __init vrfb_probe(struct platform_device >> > *pdev) >> > return PTR_ERR(vrfb_base); >> > >> > num_ctxs

Re: [PATCH] omapfb: Use devm_kcalloc() in vrfb_probe()

2017-05-11 Thread Bartlomiej Zolnierkiewicz
On Thursday, May 11, 2017 04:27:19 PM Bartlomiej Zolnierkiewicz wrote: > > @@ -358,11 +358,7 @@ static int __init vrfb_probe(struct platform_device > > *pdev) > > return PTR_ERR(vrfb_base); > > > > num_ctxs = pdev->num_resources - 1; > > - > > - ctxs = devm_kzalloc(&pdev->dev,

Re: [PATCH] omapfb: Use devm_kcalloc() in vrfb_probe()

2017-05-11 Thread Bartlomiej Zolnierkiewicz
Hi, On Wednesday, April 26, 2017 11:20:07 AM SF Markus Elfring wrote: > From: Markus Elfring > Date: Wed, 26 Apr 2017 11:08:30 +0200 > > * A multiplication for the size determination of a memory allocation > indicated that an array data structure should be processed. > Thus use the correspo