drivers: dma: ti: k3-udma: Extract packet data only when Meta data is not NULL
authorKeerthy <j-keerthy@ti.com>
Wed, 24 Apr 2019 11:03:54 +0000 (16:33 +0530)
committerTom Rini <trini@konsulko.com>
Fri, 3 May 2019 11:23:17 +0000 (07:23 -0400)
commita3f25b925fe690be7744d47df0135321e43e2c2a
treebd916bfc3ac9bc4567c9241b08872eeb27da811e
parentb4ee6daad7a2604ca9466b2ba48de86cc27d381f
drivers: dma: ti: k3-udma: Extract packet data only when Meta data is not NULL

Currently packet data is wrongly extracted when metadata is NULL.
Fix it and negate the if check.

Signed-off-by: Keerthy <j-keerthy@ti.com>
Reviewed-by: Grygorii Strashko <grygorii.strashko@ti.com>
Reviewed-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
drivers/dma/ti/k3-udma.c