[media] v4l2: pass std by value to the write-only s_std ioctl
[linux-block.git] / drivers / media / pci / zoran / zoran_driver.c
index 2e8f518f298fd54b735afb538d54d6a4cace339d..1168a84a737dafae1dbf6e7e3bbe195b891815d6 100644 (file)
@@ -2435,14 +2435,14 @@ static int zoran_g_std(struct file *file, void *__fh, v4l2_std_id *std)
        return 0;
 }
 
-static int zoran_s_std(struct file *file, void *__fh, v4l2_std_id *std)
+static int zoran_s_std(struct file *file, void *__fh, v4l2_std_id std)
 {
        struct zoran_fh *fh = __fh;
        struct zoran *zr = fh->zr;
        int res = 0;
 
        mutex_lock(&zr->resource_lock);
-       res = zoran_set_norm(zr, *std);
+       res = zoran_set_norm(zr, std);
        if (res)
                goto sstd_unlock_and_return;