diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2019-02-08 03:49:23 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2019-02-18 10:58:59 -0500 |
commit | 3d769df5fc32dc3cb12d6ccb61690b09371b8b3f (patch) | |
tree | 518a7e17f442f7302846cbc3f9b3817086114174 /drivers/media | |
parent | 5515e414f42bf2769caae15b634004d456658284 (diff) | |
download | linux-stable-3d769df5fc32dc3cb12d6ccb61690b09371b8b3f.tar.gz linux-stable-3d769df5fc32dc3cb12d6ccb61690b09371b8b3f.tar.bz2 linux-stable-3d769df5fc32dc3cb12d6ccb61690b09371b8b3f.zip |
media: v4l2-subdev.h: v4l2_subdev_call: use temp __sd variable
The sd argument of this macro can be a more complex expression. Since it
is used 5 times in the macro it can be evaluated that many times as well.
So assign it to a temp variable in the beginning and use that instead.
This also avoids any potential side-effects of evaluating sd.
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/media')
0 files changed, 0 insertions, 0 deletions