intel_th: Check for NULL instead of ERR_PTR
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 16 Oct 2015 14:09:13 +0000 (17:09 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Oct 2015 06:25:48 +0000 (23:25 -0700)
commit73061da07d28ac6724bcd9ce4b51cf51a8b6b40e
treebda6bd37fb26f21fa47d6e49de3483e124952ed4
parent1c090575b013cd1f0070567203498704fa61b2fc
intel_th: Check for NULL instead of ERR_PTR

devm_ioremap() returns NULL on error, it doesn't return an ERR_PTR,
which is what the current code does. This patch corrects these
checks.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hwtracing/intel_th/gth.c
drivers/hwtracing/intel_th/msu.c
drivers/hwtracing/intel_th/pti.c
drivers/hwtracing/intel_th/sth.c