staging: android: ion: Use ERR_CAST instead of ERR_PTR
authorIulia Manda <iulia.manda21@gmail.com>
Tue, 11 Mar 2014 18:14:36 +0000 (20:14 +0200)
committerPeter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
Thu, 13 Mar 2014 23:34:02 +0000 (16:34 -0700)
commit464a5028eadef63e4b84e834eaeb782b537bf513
tree7cb381dad23c567437f3151e29749779c5e79d05
parent164ad86d3382de1095db97e5f566e0182d9fec4c
staging: android: ion: Use ERR_CAST instead of ERR_PTR

Fix the following coccinelle warnings in ion.c:
drivers/staging/android/ion/ion.c:511:9-16: WARNING: ERR_CAST can be used with buffer
drivers/staging/android/ion/ion.c:218:9-16: WARNING: ERR_CAST can be used with table
drivers/staging/android/ion/ion.c:1150:9-16: WARNING: ERR_CAST can be used with dmabuf

Signed-off-by: Iulia Manda <iulia.manda21@gmail.com>
Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Signed-off-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
drivers/staging/android/ion/ion.c