]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
[media] Fix compile warning: Dereferencing type-punned pointer will break strict...
authorHans Petter Selasky <hselasky@c2i.net>
Mon, 23 May 2011 11:13:06 +0000 (08:13 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 1 Jun 2011 15:22:57 +0000 (12:22 -0300)
Signed-off-by: Hans Petter Selasky <hselasky@c2i.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/v4l2-ioctl.c

index 506edcc2ddeb722eedae63934ab4be34b65371f3..213ba7d02e882ec0c7578a101e229f0098e026cd 100644 (file)
@@ -2264,7 +2264,7 @@ static int check_array_args(unsigned int cmd, void *parg, size_t *array_size,
                                break;
                        }
                        *user_ptr = (void __user *)buf->m.planes;
-                       *kernel_ptr = (void **)&buf->m.planes;
+                       *kernel_ptr = (void *)&buf->m.planes;
                        *array_size = sizeof(struct v4l2_plane) * buf->length;
                        ret = 1;
                }
@@ -2278,7 +2278,7 @@ static int check_array_args(unsigned int cmd, void *parg, size_t *array_size,
 
                if (ctrls->count != 0) {
                        *user_ptr = (void __user *)ctrls->controls;
-                       *kernel_ptr = (void **)&ctrls->controls;
+                       *kernel_ptr = (void *)&ctrls->controls;
                        *array_size = sizeof(struct v4l2_ext_control)
                                    * ctrls->count;
                        ret = 1;