diff options
| author | Michael Zoran <mzoran@crowfest.net> | 2016-10-20 01:58:48 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-10-24 16:21:27 +0300 |
| commit | 8e8e2e36f77ab074016f79ac63b7255f645da3ed (patch) | |
| tree | 66d97d808ad006ac104d6bc7293858565d961559 /scripts/checkpatch.pl | |
| parent | 24a4262afb10907fce3cdbc3ae336fcf4cdaece5 (diff) | |
| download | linux-8e8e2e36f77ab074016f79ac63b7255f645da3ed.tar.xz | |
staging: vc04_services: Handle conversion from VCHIQ_SERVICE_HANDLE_T to VCHI_SERVICE_HANDLE_T
A VCHIQ_SERVICE_HANDLE_T which is an int is stuffed into a
VCHI_SERVICE_HANDLE_T which is a pointer, passed around, then
converted back to a VCHIQ_SERVICE_HANDLE_T. Since the data is
always actually a VCHIQ_SERVICE_HANDLE_T(int), never actually a
pointer, it is safe to simply cast the two back in forth.
Note that pointers are never stuffed into an int.
Signed-off-by: Michael Zoran <mzoran@crowfest.net>
Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/checkpatch.pl')
0 files changed, 0 insertions, 0 deletions
