diff options
| author | Sakari Ailus <[email protected]> | 2019-06-06 10:18:42 -0400 |
|---|---|---|
| committer | Mauro Carvalho Chehab <[email protected]> | 2019-06-21 17:54:00 -0400 |
| commit | 4ace2d28aba594e234923f55f476e97c56f6689a (patch) | |
| tree | cbe1aa7e42f1fb37b854128a2e8e61450a8caaf2 /tools/perf/scripts/python/bin/stackcollapse-report | |
| parent | 5c49ac3ac6562a39baa2aece050a14b661197036 (diff) | |
media: v4l2-fwnode: Avoid using PTR_ERR(NULL)
PTR_ERR(NULL) yields 0 which is commonly used to denote success. This is
the case here, and PTR_ERR(NULL) is apparently shunned upon. Fix this by
explicitly returning 0 if fwnode == NULL.
Reported-by: Hans Verkuil <[email protected]>
Signed-off-by: Sakari Ailus <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions