diff options
| author | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2018-08-07 16:15:27 +0300 | 
|---|---|---|
| committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2018-08-08 17:57:14 +0300 | 
| commit | 541b647a34d36827bf06aa64c3a5e5936cffa10f (patch) | |
| tree | 1d8a0fb83cf7c9edce16fee319df615b559d2498 /scripts/gcc-plugins/gcc-generate-rtl-pass.h | |
| parent | 484f9b372dd8da6a4a9867ebcd10e5c2b21ab478 (diff) | |
| download | linux-541b647a34d36827bf06aa64c3a5e5936cffa10f.tar.xz | |
media: exynos-gsc: fix return code if mutex was interrupted
All poll routines expect a poll flag, and not error codes. So,
instead of returning -ERESTARTSYS if the mutex got interrupted,
return EPOLERR, just like the V4L2 VB2 code.
Solves this sparce warning:
	drivers/media/platform/exynos-gsc/gsc-m2m.c:716:24: warning: incorrect type in return expression (different base types)
	drivers/media/platform/exynos-gsc/gsc-m2m.c:716:24:    expected restricted __poll_t
	drivers/media/platform/exynos-gsc/gsc-m2m.c:716:24:    got int
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'scripts/gcc-plugins/gcc-generate-rtl-pass.h')
0 files changed, 0 insertions, 0 deletions
