diff options
author | Markus Elfring <[email protected]> | 2015-12-28 19:52:48 -0200 |
---|---|---|
committer | Mauro Carvalho Chehab <[email protected]> | 2016-02-01 07:39:25 -0200 |
commit | 80c1bce9aa315ac70738f79afb4f7c93ae27d9fa (patch) | |
tree | 4a582aa128bf96adacb18deb227208736c975ec4 /drivers/fpga/fpga-mgr.c | |
parent | 490ba9c29d5b82df2bed59d6007314c03d597716 (diff) |
[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 <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions