]> git.baikalelectronics.ru Git - kernel.git/commit
[media] au0828: Refactoring for start_urb_transfer()
authorMarkus Elfring <elfring@users.sourceforge.net>
Mon, 28 Dec 2015 21:52:48 +0000 (19:52 -0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 1 Feb 2016 09:39:25 +0000 (07:39 -0200)
commit6d320e8f54bcc5e80247ca089676915c7328f098
tree4a582aa128bf96adacb18deb227208736c975ec4
parenteadb67240701922f4b3e1bff626a95076a27b58c
[media] au0828: Refactoring for start_urb_transfer()

This issue was detected by using the Coccinelle software.

1. Let us return directly if a buffer allocation failed.

2. Delete the jump label "err" then.

3. Drop the explicit initialisation for the variable "ret"
   at the beginning.

4. Return zero as a constant at the end.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/usb/au0828/au0828-dvb.c