Thread (15 messages) 15 messages, 5 authors, 2013-08-07

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

From: s.nawrocki@samsung.com (Sylwester Nawrocki)
Date: 2013-08-06 15:33:03
Also in: linux-devicetree

On 08/06/2013 05:07 PM, Michal Nazarewicz wrote:
On Tue, Aug 06 2013, Rob Herring wrote:
quoted
quoted
quoted
quoted
+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.
I think Rob's suggestion was to replace two 'if' statements with a single
one, which makes sense.


Thanks,
Sylwester
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help