OSDN Git Service

dmaengine: hsu: remove redundant pieces of code
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 16 Mar 2015 08:53:57 +0000 (10:53 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Mar 2015 22:02:48 +0000 (23:02 +0100)
commit4bb82458ec76edc6d2a91fd3b2d2daae44561443
treed6a43899fe02a0b111b73951fa1954a0dc6391a6
parent90b9aacf912af38a177114ca232051c61be8b93e
dmaengine: hsu: remove redundant pieces of code

There are few places where the implemented pieces of code are not needed, i.e.:
- direction can't be wrong in hsu_dma_chan_start()
- desc->active set to 0 by kzalloc
- DMAEngine is NULL-aware when call ->device_alloc_chan_resources()

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/dma/hsu/hsu.c