[patch] intel_th: checking for ERR_PTR instead of NULL

2015-10-09 Thread Dan Carpenter
devm_ioremap() returns NULL on error, it doesn't return an ERR_PTR. Signed-off-by: Dan Carpenter diff --git a/drivers/hwtracing/intel_th/pti.c b/drivers/hwtracing/intel_th/pti.c index 1e3bbc8..57cbfdc 100644 --- a/drivers/hwtracing/intel_th/pti.c +++ b/drivers/hwtracing/intel_th/pti.c @@ -207,8

[patch] intel_th: checking for ERR_PTR instead of NULL

2015-10-09 Thread Dan Carpenter
devm_ioremap() returns NULL on error, it doesn't return an ERR_PTR. Signed-off-by: Dan Carpenter diff --git a/drivers/hwtracing/intel_th/pti.c b/drivers/hwtracing/intel_th/pti.c index 1e3bbc8..57cbfdc 100644 --- a/drivers/hwtracing/intel_th/pti.c +++