Vaishali Thakkar d6c925cada drm/msm: Move call to PTR_ERR_OR_ZERO after reassignment
Here, a location is reset to NULL before being passed to PTR_ERR.
So, PTR_ERR should be called before its argument is reassigned
to NULL. Further to simplify things use PTR_ERR_OR_ZERO instead
of PTR_ERR and IS_ERR.

Problem found using Coccinelle.

Signed-off-by: Vaishali Thakkar <vaishali.thakkar@oracle.com>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
[fixed fmt string warning (s/%ld/%d/)]
Signed-off-by: Rob Clark <robdclark@gmail.com>
2016-05-08 10:22:16 -04:00
..
2016-04-12 13:14:08 +02:00
2016-04-22 08:32:51 +10:00
2016-03-14 09:46:02 +10:00
2016-04-22 08:32:51 +10:00
2016-03-17 08:09:44 +10:00
2016-05-02 16:36:57 +02:00
2016-04-22 08:32:51 +10:00
2016-04-20 12:58:45 +02:00