summaryrefslogtreecommitdiffstats
path: root/drivers/media/platform/exynos-gsc
diff options
context:
space:
mode:
authorMarkus Elfring2015-12-19 15:28:37 +0100
committerMauro Carvalho Chehab2016-01-25 18:15:37 +0100
commitd5441ea58ccc70637b75b035dee61685b516a5ca (patch)
treeec5f0d7422b5df9d38073aa77f5b3b2516e9a727 /drivers/media/platform/exynos-gsc
parent[media] staging: media: lirc: space around operator (diff)
downloadkernel-qcow2-linux-d5441ea58ccc70637b75b035dee61685b516a5ca.tar.gz
kernel-qcow2-linux-d5441ea58ccc70637b75b035dee61685b516a5ca.tar.xz
kernel-qcow2-linux-d5441ea58ccc70637b75b035dee61685b516a5ca.zip
[media] gsc-m2m: Use an unsigned data type for a variable
The data type "int" was used by the variable "ret" in the gsc_m2m_poll() function despite of the aspect that the type "unsigned int" will usually be needed for the return value from a call of the v4l2_m2m_poll() function. Improve this implementation detail by addition of the type modifier then. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring <elfring@users.sourceforge.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/platform/exynos-gsc')
-rw-r--r--drivers/media/platform/exynos-gsc/gsc-m2m.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/exynos-gsc/gsc-m2m.c b/drivers/media/platform/exynos-gsc/gsc-m2m.c
index 93782f15b825..a600e32e2543 100644
--- a/drivers/media/platform/exynos-gsc/gsc-m2m.c
+++ b/drivers/media/platform/exynos-gsc/gsc-m2m.c
@@ -700,7 +700,7 @@ static unsigned int gsc_m2m_poll(struct file *file,
{
struct gsc_ctx *ctx = fh_to_ctx(file->private_data);
struct gsc_dev *gsc = ctx->gsc_dev;
- int ret;
+ unsigned int ret;
if (mutex_lock_interruptible(&gsc->lock))
return -ERESTARTSYS;