ata: sata_dwc_460ex: tidy up sata_dwc_clear_dmacr()
authorMans Rullgard <mans@mansr.com>
Tue, 26 Apr 2016 09:03:21 +0000 (12:03 +0300)
committerTejun Heo <tj@kernel.org>
Thu, 12 May 2016 14:53:20 +0000 (10:53 -0400)
commitaf50f3a8b61cfdfcf4a01b01ec2759200d362605
tree90cd1f34ebf9deb660d805437ff54a52eea2721d
parentee81d6cc8e8aa667aabce72f39a4b806419e1d55
ata: sata_dwc_460ex: tidy up sata_dwc_clear_dmacr()

This consolidates the reads from each of the if/else branches
to one place making the code a lot nicer to look at.

Tested-by: Christian Lamparter <chunkeey@googlemail.com>
Signed-off-by: Mans Rullgard <mans@mansr.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
drivers/ata/sata_dwc_460ex.c