diff options
Diffstat (limited to 'drivers/dma/ep93xx_dma.c')
-rw-r--r-- | drivers/dma/ep93xx_dma.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/dma/ep93xx_dma.c b/drivers/dma/ep93xx_dma.c index 21f08cc3352b..2ffaca25267e 100644 --- a/drivers/dma/ep93xx_dma.c +++ b/drivers/dma/ep93xx_dma.c | |||
@@ -262,10 +262,8 @@ static void ep93xx_dma_set_active(struct ep93xx_dma_chan *edmac, | |||
262 | static struct ep93xx_dma_desc * | 262 | static struct ep93xx_dma_desc * |
263 | ep93xx_dma_get_active(struct ep93xx_dma_chan *edmac) | 263 | ep93xx_dma_get_active(struct ep93xx_dma_chan *edmac) |
264 | { | 264 | { |
265 | if (list_empty(&edmac->active)) | 265 | return list_first_entry_or_null(&edmac->active, |
266 | return NULL; | 266 | struct ep93xx_dma_desc, node); |
267 | |||
268 | return list_first_entry(&edmac->active, struct ep93xx_dma_desc, node); | ||
269 | } | 267 | } |
270 | 268 | ||
271 | /** | 269 | /** |