<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/media/usb/usbvision, branch linux-3.17.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.17.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.17.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2014-07-04T18:35:02Z</updated>
<entry>
<title>[media] drivers/media/usb/usbvision/usbvision-core.c: Remove useless return variables</title>
<updated>2014-07-04T18:35:02Z</updated>
<author>
<name>Peter Senna Tschudin</name>
</author>
<published>2014-05-31T13:14:08Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=931387fa941ec0da2f4a6999bec69bc608af311e'/>
<id>urn:sha1:931387fa941ec0da2f4a6999bec69bc608af311e</id>
<content type='text'>
This patch remove variables that are initialized with a constant,
are never updated, and are only used as parameter of return.
Return the constant instead of using a variable.

Verified by compilation only.

The coccinelle script that find and fixes this issue is:
// &lt;smpl&gt;
@@
type T;
constant C;
identifier ret;
@@
- T ret = C;
... when != ret
    when strict
return
- ret
+ C
;
// &lt;/smpl&gt;

Signed-off-by: Peter Senna Tschudin &lt;peter.senna@gmail.com&gt;
Signed-off-by: Hans Verkuil &lt;hans.verkuil@cisco.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;m.chehab@samsung.com&gt;
</content>
</entry>
<entry>
<title>[media] v4l: subdev: Move [gs]_std operation to video ops</title>
<updated>2014-05-24T20:11:26Z</updated>
<author>
<name>Laurent Pinchart</name>
</author>
<published>2014-04-28T19:53:01Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=8774bed9ce832d8d9ccb79e92800b808aa2d2ad2'/>
<id>urn:sha1:8774bed9ce832d8d9ccb79e92800b808aa2d2ad2</id>
<content type='text'>
The g_std and s_std operations are video-related, move them to the video
ops where they belong.

Signed-off-by: Laurent Pinchart &lt;laurent.pinchart@ideasonboard.com&gt;
Acked-by: Hans Verkuil &lt;hans.verkuil@cisco.com&gt;
Acked-by: Lad, Prabhakar &lt;prabhakar.csengg@gmail.com&gt;
Acked-by: Sakari Ailus &lt;sakari.ailus@linux.intel.com&gt;
Signed-off-by: Hans Verkuil &lt;hans.verkuil@cisco.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;m.chehab@samsung.com&gt;
</content>
</entry>
<entry>
<title>[media] usbvision: drop unused define USBVISION_SAY_AND_WAIT</title>
<updated>2014-02-04T11:52:39Z</updated>
<author>
<name>Hans Verkuil</name>
</author>
<published>2014-01-17T10:27:27Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3857fcdee98911570770e61fc0480478a613117c'/>
<id>urn:sha1:3857fcdee98911570770e61fc0480478a613117c</id>
<content type='text'>
This define uses the deprecated interruptible_sleep_on_timeout
function. Since this define is unused anyway we just remove it.

Signed-off-by: Hans Verkuil &lt;hans.verkuil@cisco.com&gt;
Cc: Arnd Bergmann &lt;arnd@arndb.de&gt;
Acked-by: Arnd Bergmann &lt;arnd@arndb.de&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;m.chehab@samsung.com&gt;
</content>
</entry>
<entry>
<title>[media] usbvision-video: fix memory leak of alt_max_pkt_size</title>
<updated>2013-06-21T14:29:24Z</updated>
<author>
<name>Alexey Khoroshilov</name>
</author>
<published>2013-06-10T20:32:29Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=090c65b694c362adb19ec9c27de216a808ee443c'/>
<id>urn:sha1:090c65b694c362adb19ec9c27de216a808ee443c</id>
<content type='text'>
1. usbvision-&gt;alt_max_pkt_size is not deallocated anywhere.
2. if allocation of usbvision-&gt;alt_max_pkt_size fails,
there is no proper deallocation of already acquired resources.
The patch adds kfree(usbvision-&gt;alt_max_pkt_size) to
usbvision_release() as soon as other deallocations happen there.
It calls usbvision_release() if allocation of
usbvision-&gt;alt_max_pkt_size fails as soon as usbvision_release()
is safe to work with incompletely initialized usbvision structure.
Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Alexey Khoroshilov &lt;khoroshilov@ispras.ru&gt;
Signed-off-by: Hans Verkuil &lt;hans.verkuil@cisco.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
</content>
</entry>
<entry>
<title>[media] v4l2: remove obsolete v4l2_chip_match_host()</title>
<updated>2013-06-21T13:30:54Z</updated>
<author>
<name>Hans Verkuil</name>
</author>
<published>2013-05-26T11:24:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6ec19898ed6990baa285b8c96a8b1a0d0366bc46'/>
<id>urn:sha1:6ec19898ed6990baa285b8c96a8b1a0d0366bc46</id>
<content type='text'>
This function is no longer needed since it is now the responsibility of the
v4l2 core to check if the DBG_G/S_REGISTER and DBG_G_CHIP_INFO ioctls are
called for the bridge driver or not.

Signed-off-by: Hans Verkuil &lt;hans.verkuil@cisco.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
</content>
</entry>
<entry>
<title>[media] usbvision: replace current_norm by g_std</title>
<updated>2013-06-17T12:37:23Z</updated>
<author>
<name>Hans Verkuil</name>
</author>
<published>2013-06-03T08:36:47Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3b8436d9db43a810dd44393733b34fda6e0f0b9d'/>
<id>urn:sha1:3b8436d9db43a810dd44393733b34fda6e0f0b9d</id>
<content type='text'>
current_norm use is deprecated because it is per-devicenode and if you
have more device nodes all dependent on the same video source, then this
no longer works. Just implement g_std instead.

Signed-off-by: Hans Verkuil &lt;hans.verkuil@cisco.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
</content>
</entry>
<entry>
<title>[media] v4l2: add const to argument of write-only s_register ioctl</title>
<updated>2013-03-24T11:47:01Z</updated>
<author>
<name>Hans Verkuil</name>
</author>
<published>2013-03-24T11:28:46Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=977ba3b1b73f24fae2d0c8bd59d7a4696f1e0ccc'/>
<id>urn:sha1:977ba3b1b73f24fae2d0c8bd59d7a4696f1e0ccc</id>
<content type='text'>
This ioctl is defined as IOW, so pass the argument as const.

Signed-off-by: Hans Verkuil &lt;hans.verkuil@cisco.com&gt;
Acked-by: Guennadi Liakhovetski &lt;g.liakhovetski@gmx.de&gt;
Acked-by: Lad, Prabhakar &lt;prabhakar.csengg@gmail.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
</content>
</entry>
<entry>
<title>[media] v4l2: pass std by value to the write-only s_std ioctl</title>
<updated>2013-03-24T09:47:00Z</updated>
<author>
<name>Hans Verkuil</name>
</author>
<published>2013-03-15T09:10:40Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=314527acbbb3f33f72c2ef19d8cfabcada9912a5'/>
<id>urn:sha1:314527acbbb3f33f72c2ef19d8cfabcada9912a5</id>
<content type='text'>
This ioctl is defined as IOW, so pass the argument by value instead of by
reference. I could have chosen to add const instead, but this is 1) easier
to handle in drivers and 2) consistent with the s_std subdev operation.

Signed-off-by: Hans Verkuil &lt;hans.verkuil@cisco.com&gt;
Acked-by: Laurent Pinchart &lt;laurent.pinchart@ideasonboard.com&gt;
Acked-by: Jonathan Corbet &lt;corbet@lwn.net&gt;
Acked-by: Guennadi Liakhovetski &lt;g.liakhovetski@gmx.de&gt;
Acked-by: Lad, Prabhakar &lt;prabhakar.csengg@gmail.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
</content>
</entry>
<entry>
<title>[media] v4l2: add const to argument of write-only s_tuner ioctl</title>
<updated>2013-03-24T09:31:23Z</updated>
<author>
<name>Hans Verkuil</name>
</author>
<published>2013-03-15T09:10:06Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2f73c7c582a685b3198b974cd6d964d0338f8ab5'/>
<id>urn:sha1:2f73c7c582a685b3198b974cd6d964d0338f8ab5</id>
<content type='text'>
This ioctl is defined as IOW, so pass the argument as const.

Signed-off-by: Hans Verkuil &lt;hans.verkuil@cisco.com&gt;
Acked-by: Laurent Pinchart &lt;laurent.pinchart@ideasonboard.com&gt;
Acked-by: Alexey Klimov &lt;klimov.linux@gmail.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
</content>
</entry>
<entry>
<title>[media] v4l2: add const to argument of write-only s_frequency ioctl</title>
<updated>2013-03-24T09:25:34Z</updated>
<author>
<name>Hans Verkuil</name>
</author>
<published>2013-03-19T07:09:26Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b530a447bb588fdf43fdf4eb909e4ee1921d47ac'/>
<id>urn:sha1:b530a447bb588fdf43fdf4eb909e4ee1921d47ac</id>
<content type='text'>
This ioctl is defined as IOW, so pass the argument as const.

Signed-off-by: Hans Verkuil &lt;hans.verkuil@cisco.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
</content>
</entry>
</feed>
