[PATCH v4 3/4] drivers: of: add initialization code for dma reserved memory

Rob Herring robherring2 at gmail.com
Wed Aug 7 09:08:13 EDT 2013


On Tue, Aug 6, 2013 at 10:07 AM, Michal Nazarewicz <mina86 at mina86.com> wrote:
> On Tue, Aug 06 2013, Rob Herring wrote:
>>> +static void reserved_mem_release_device_from_dt(struct device *dev)
>>> +{
>>> +       struct reserved_mem *region = get_dma_memory_region(dev);
>>> +       if (!region)
>>> +               return;
>>> +       if (!region->cma)
>>
>> if (region && !region->cma)
>
> !region case is handled two lines above, so no need to check if region
> is not null.

Right. Sorry if I was not clear. Combine the 3 lines into 1 line.

Rob



More information about the linux-arm-kernel mailing list