diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2016-09-06 20:41:19 +0900 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2016-09-07 20:35:29 +0200 |
commit | 44cc4a017e2df87f25765ac270f3f64efc6b06ef (patch) | |
tree | ad55e8dffc16bc00492aab005320c870c22f384f /sound/pci/ctxfi | |
parent | f3f6c61452e28ffdf93b101555546af8ef63def5 (diff) | |
download | linux-44cc4a017e2df87f25765ac270f3f64efc6b06ef.tar.bz2 |
ALSA: squash lines for simple wrapper functions
Remove unneeded variables and assignments.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/ctxfi')
-rw-r--r-- | sound/pci/ctxfi/ctvmem.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sound/pci/ctxfi/ctvmem.c b/sound/pci/ctxfi/ctvmem.c index 419306ef825f..520e19bc649f 100644 --- a/sound/pci/ctxfi/ctvmem.c +++ b/sound/pci/ctxfi/ctvmem.c @@ -166,11 +166,7 @@ static void ct_vm_unmap(struct ct_vm *vm, struct ct_vm_block *block) static dma_addr_t ct_get_ptp_phys(struct ct_vm *vm, int index) { - dma_addr_t addr; - - addr = (index >= CT_PTP_NUM) ? ~0UL : vm->ptp[index].addr; - - return addr; + return (index >= CT_PTP_NUM) ? ~0UL : vm->ptp[index].addr; } int ct_vm_create(struct ct_vm **rvm, struct pci_dev *pci) |