Staging: rts5208: fix check for dma mapping error
authorHaneen Mohammed <hamohammed.sa@gmail.com>
Tue, 9 Feb 2016 20:03:05 +0000 (23:03 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Feb 2016 01:43:09 +0000 (17:43 -0800)
commit9a66d05d82db0404cf39669052a1cb0da608873c
tree09dd997e8b5bbca3f6b6f7c9f4ea55bf3d20846f
parentca026a3504c2033821b672a09b26d467ae017eb2
Staging: rts5208: fix check for dma mapping error

use dma_mapping_error() instead of comparing the returned address with
zero after dma_map_single().

Signed-off-by: Haneen Mohammed <hamohammed.sa@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rts5208/rtsx_transport.c