Commit d5441ea5 authored by Markus Elfring's avatar Markus Elfring Committed by Mauro Carvalho Chehab

[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: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent 0d2f79c2
...@@ -700,7 +700,7 @@ static unsigned int gsc_m2m_poll(struct file *file, ...@@ -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_ctx *ctx = fh_to_ctx(file->private_data);
struct gsc_dev *gsc = ctx->gsc_dev; struct gsc_dev *gsc = ctx->gsc_dev;
int ret; unsigned int ret;
if (mutex_lock_interruptible(&gsc->lock)) if (mutex_lock_interruptible(&gsc->lock))
return -ERESTARTSYS; return -ERESTARTSYS;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment