diff options
| author | Kieran Bingham <[email protected]> | 2017-06-07 06:52:07 -0300 |
|---|---|---|
| committer | Mauro Carvalho Chehab <[email protected]> | 2017-06-08 16:55:25 -0300 |
| commit | 47f910f0e0deb880c2114811f7ea1ec115a19ee4 (patch) | |
| tree | 073ac6c6b3ccfd1730d199bf5418087ceeebf15e /tools/perf/scripts/python/netdev-times.py | |
| parent | 7eb2bcb2efccf07cc4bc31791e3c36bebe12b8ad (diff) | |
[media] v4l: subdev: tolerate null in media_entity_to_v4l2_subdev
Return NULL, if a null entity is parsed for it's v4l2_subdev
Currently, the callers of media_entity_to_v4l2_subdev() need to
make sure that the subdev is non-NULL, for example, when it is
obtained from media_entity_remote_pad().
As this is a recurring pattern, add the check at the macro in order
to avoid additional checks at the callers.
Signed-off-by: Kieran Bingham <[email protected]>
Reviewed-by: Sakari Ailus <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions